]> granicus.if.org Git - shadow/commitdiff
* libmisc/list.c: Change is_on_list() prototype to return a bool.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 9 Jun 2008 18:13:52 +0000 (18:13 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 9 Jun 2008 18:13:52 +0000 (18:13 +0000)
ChangeLog
libmisc/list.c

index d19d2e6261798e3f768718bd1ef6d506a5b99786..18cf2250da71bf881096dc4d907b78d527afffaf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-09  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/list.c: Change is_on_list() prototype to return a bool.
+
 2008-06-09  Nicolas François  <nicolas.francois@centraliens.net>
 
        * libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
index c39f79318d6cda393c86c86e15883fd3a2d61aea..36b3caf25a6cf21c726ac1e8b8e96f4012153be8 100644 (file)
@@ -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;
 }
 
 /*