X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Faliasbr.c;h=b2e51f560cfbda2dc4241af104264f294442c5f2;hb=356f49083391bd018b6c5dfed21e59247b4cc74a;hp=50a2cd5d3675d8bcd2ecaa780a69bdd80b9e8dba;hpb=30542ddcbeb83a58e5802ec3421516ed9c252991;p=mmh diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 50a2cd5..b2e51f5 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