diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/eqn/paren.c | 2 | ||||
-rw-r--r-- | src/cmd/pic/picl.lx | 2 | ||||
-rw-r--r-- | src/cmd/spell/sprog.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/eqn/paren.c b/src/cmd/eqn/paren.c index bb019bf7..01941e32 100644 --- a/src/cmd/eqn/paren.c +++ b/src/cmd/eqn/paren.c @@ -21,7 +21,7 @@ void paren(int leftc, int p1, int rightc) n = 1; m = n - 2; if (leftc == '{' || rightc == '}') { - n = n%2 ? n : ++n; + n = n%2 ? n : n+1; if (n < 3) n = 3; m = n-3; diff --git a/src/cmd/pic/picl.lx b/src/cmd/pic/picl.lx index f5a9c155..da29d246 100644 --- a/src/cmd/pic/picl.lx +++ b/src/cmd/pic/picl.lx @@ -29,7 +29,7 @@ int yylook(void); int yywrap(void); #define CADD cbuf[clen++]=yytext[0]; \ - if (clen>=CBUFLEN-1) { ERROR "string too long", cbuf WARNING; BEGIN A; } + if (clen>=CBUFLEN-1) { ERROR "string too long" WARNING; BEGIN A; } #define CBUFLEN 500 char cbuf[CBUFLEN]; int c, clen, cflag, delim; diff --git a/src/cmd/spell/sprog.c b/src/cmd/spell/sprog.c index 8d5519ef..971848e1 100644 --- a/src/cmd/spell/sprog.c +++ b/src/cmd/spell/sprog.c @@ -978,7 +978,7 @@ trypref(char* ep, char* a, int lev, int flag) deriv[lev+1].mesg = pp; deriv[lev+1].type = 0; } - while(tp=lookuppref((uchar**)&bp,ep)) { + while(tp=lookuppref((uchar**)(void*)&bp,ep)) { *pp++ = '+'; cp = tp->s; while(pp<space+sizeof(space) && (*pp = *cp++)) |