--- login-utils/islocal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/islocal.c b/login-utils/islocal.c index 1ee8408..2976980 100644 --- a/login-utils/islocal.c +++ b/login-utils/islocal.c @@ -32,7 +32,7 @@ is_local(char *user) FILE *fd; char line[MAX_LENGTH]; int local = 0; - int len; + size_t len; if(!(fd = fopen(_PATH_PASSWD, "r"))) { fprintf(stderr,_("Can't read %s, exiting."),_PATH_PASSWD); @@ -40,7 +40,7 @@ is_local(char *user) } len = strlen(user); - while(fgets(line, MAX_LENGTH, fd) > 0) { + while(fgets(line, MAX_LENGTH, fd)) { if(!strncmp(line, user, len) && line[len] == ':') { local = 1; break; -- 1.5.3.8 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html