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; } /*