fix most of the fixable bitchings of MIPSpro compiler (complainer?)
This commit is contained in:
8
funcs.c
8
funcs.c
@ -5,7 +5,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.69 2008/02/24 15:57:20 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.70 2008/03/28 13:28:33 tg Exp $");
|
||||
|
||||
/* A leading = means assignments before command are kept;
|
||||
* a leading * means a POSIX special builtin;
|
||||
@ -2499,7 +2499,7 @@ c_test(const char **wp)
|
||||
return !0;
|
||||
if (argc == 3) {
|
||||
opnd1 = (*te.getopnd)(&te, TO_NONOP, 1);
|
||||
if ((op = (*te.isa)(&te, TM_BINOP))) {
|
||||
if ((op = (*te.isa)(&te, TM_BINOP)) != TO_NONOP) {
|
||||
opnd2 = (*te.getopnd)(&te, op, 1);
|
||||
res = (*te.eval)(&te, op, opnd1,
|
||||
opnd2, 1);
|
||||
@ -2793,7 +2793,7 @@ test_primary(Test_env *te, int do_eval)
|
||||
}
|
||||
return res;
|
||||
}
|
||||
if ((op = (*te->isa)(te, TM_UNOP))) {
|
||||
if ((op = (*te->isa)(te, TM_UNOP)) != TO_NONOP) {
|
||||
/* unary expression */
|
||||
opnd1 = (*te->getopnd)(te, op, do_eval);
|
||||
if (!opnd1) {
|
||||
@ -2947,7 +2947,7 @@ c_ulimit(const char **wp)
|
||||
{ "swap(KiB)", RLIMIT, RLIMIT_SWAP, RLIMIT_SWAP,
|
||||
1024, 'w' },
|
||||
#endif
|
||||
{ NULL, 0, 0, 0, 0, 0 }
|
||||
{ NULL, RLIMIT, 0, 0, 0, 0 }
|
||||
};
|
||||
static char opts[3 + NELEM(limits)];
|
||||
rlim_t val = (rlim_t)0;
|
||||
|
Reference in New Issue
Block a user