From 8cfe8db1fb239caa121a9504f97ba07a65baa17f Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 9 Jun 2008 18:13:52 +0000 Subject: [PATCH] * libmisc/list.c: Change is_on_list() prototype to return a bool. --- ChangeLog | 4 ++++ libmisc/list.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d19d2e62..18cf2250 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-09 Nicolas François + + * libmisc/list.c: Change is_on_list() prototype to return a bool. + 2008-06-09 Nicolas François * libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid() diff --git a/libmisc/list.c b/libmisc/list.c index c39f7931..36b3caf2 100644 --- a/libmisc/list.c +++ b/libmisc/list.c @@ -157,15 +157,15 @@ char **dup_list (char *const *list) return tmp; } -int is_on_list (char *const *list, const char *member) +bool is_on_list (char *const *list, const char *member) { while (*list) { if (strcmp (*list, member) == 0) { - return 1; + return true; } list++; } - return 0; + return false; } /*