* libmisc/list.c: Change is_on_list() prototype to return a bool.

This commit is contained in:
nekral-guest 2008-06-09 18:13:52 +00:00
parent 5ae74603da
commit 8cfe8db1fb
2 changed files with 7 additions and 3 deletions

View File

@ -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()

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