* libmisc/list.c: Change is_on_list() prototype to return a bool.
This commit is contained in:
parent
5ae74603da
commit
8cfe8db1fb
@ -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>
|
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
|
* libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
|
||||||
|
@ -157,15 +157,15 @@ char **dup_list (char *const *list)
|
|||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int is_on_list (char *const *list, const char *member)
|
bool is_on_list (char *const *list, const char *member)
|
||||||
{
|
{
|
||||||
while (*list) {
|
while (*list) {
|
||||||
if (strcmp (*list, member) == 0) {
|
if (strcmp (*list, member) == 0) {
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
list++;
|
list++;
|
||||||
}
|
}
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user