X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/30542ddcbeb83a58e5802ec3421516ed9c252991..b91c842af55ec941131fdf7b09bfdf9b3124094d:/uip/aliasbr.c diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 50a2cd5d..b2e51f56 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -409,7 +409,7 @@ addall (struct aka *ak) Everyone = EVERYONE; for (hm = homehead; hm; hm = hm->h_next) - if (hm->h_uid > Everyone + if ((int) hm->h_uid > Everyone && (noshell || strcmp (hm->h_shell, NoShell))) add_aka (ak, hm->h_name); @@ -556,7 +556,9 @@ seek_home (char *name) * The only place where there might be problems. * This assumes that ALL usernames are kept in lowercase. */ - for (c = name, c1 = lname; *c && (c1 - lname < sizeof(lname) - 1); c++, c1++) { + for (c = name, c1 = lname; + *c && (c1 - lname < (int) sizeof(lname) - 1); + c++, c1++) { if (isalpha(*c) && isupper(*c)) *c1 = tolower (*c); else