* src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid

clashes with the valid() function.
This commit is contained in:
nekral-guest 2008-08-31 17:28:59 +00:00
parent 0fcae007a0
commit 281721cd15
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid
clashes with the valid() function.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c: Add brackets and parenthesis.

View File

@ -201,7 +201,7 @@ static bool is_valid_user_list (const char *users)
{
const char *start, *end;
char username[32];
bool valid = true;
bool is_valid = true;
size_t len;
for (start = users; (NULL != start) && ('\0' != *start); start = end) {
@ -227,10 +227,10 @@ static bool is_valid_user_list (const char *users)
if (getpwnam (username) == NULL) {
fprintf (stderr, _("%s: user '%s' does not exist\n"),
Prog, username);
valid = false;
is_valid = false;
}
}
return valid;
return is_valid;
}
static void failure (void)