solaris 8 / gcc 3.4.3 / -m64 warnings

This commit is contained in:
tg
2007-01-14 23:57:44 +00:00
parent a00fbd3eb7
commit 84085a8747

View File

@ -5,7 +5,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.43 2007/01/12 10:18:20 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.44 2007/01/14 23:57:44 tg Exp $");
int int
c_cd(char **wp) c_cd(char **wp)
@ -2987,7 +2987,7 @@ c_ulimit(char **wp)
val = limit.rlim_max; val = limit.rlim_max;
} }
shprintf("%-20s ", l->name); shprintf("%-20s ", l->name);
if (val == RLIM_INFINITY) if (val == (rlim_t)RLIM_INFINITY)
shprintf("unlimited\n"); shprintf("unlimited\n");
else { else {
val /= l->factor; val /= l->factor;
@ -3019,7 +3019,7 @@ c_ulimit(char **wp)
} }
} }
if (!set) { if (!set) {
if (val == RLIM_INFINITY) if (val == (rlim_t)RLIM_INFINITY)
shprintf("unlimited\n"); shprintf("unlimited\n");
else { else {
val /= l->factor; val /= l->factor;