diff options
-rw-r--r-- | src/cmd/eqn/e.h | 1 | ||||
-rw-r--r-- | src/cmd/grap/input.c | 1 | ||||
-rw-r--r-- | src/cmd/grap/print.c | 1 | ||||
-rw-r--r-- | src/cmd/jpg/togif.c | 8 | ||||
-rw-r--r-- | src/cmd/pic/picl.lx | 2 | ||||
-rw-r--r-- | src/cmd/troff/n10.c | 2 | ||||
-rw-r--r-- | src/libdisk/disk.c | 2 |
7 files changed, 10 insertions, 7 deletions
diff --git a/src/cmd/eqn/e.h b/src/cmd/eqn/e.h index 4f5282ec..fb6af133 100644 --- a/src/cmd/eqn/e.h +++ b/src/cmd/eqn/e.h @@ -1,3 +1,4 @@ +#include <u.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/cmd/grap/input.c b/src/cmd/grap/input.c index 509fb01b..345a8468 100644 --- a/src/cmd/grap/input.c +++ b/src/cmd/grap/input.c @@ -1,3 +1,4 @@ +#include <u.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/cmd/grap/print.c b/src/cmd/grap/print.c index 5a2e4e78..b9f0ab9b 100644 --- a/src/cmd/grap/print.c +++ b/src/cmd/grap/print.c @@ -1,3 +1,4 @@ +#include <u.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/cmd/jpg/togif.c b/src/cmd/jpg/togif.c index 35336883..0aa37644 100644 --- a/src/cmd/jpg/togif.c +++ b/src/cmd/jpg/togif.c @@ -31,7 +31,7 @@ main(int argc, char *argv[]) ARGBEGIN{ case 'l': s = ARGF(); - if(s==nil || (!isdigit(s[0]) && s[0]!='-')) + if(s==nil || (!isdigit((uchar)s[0]) && s[0]!='-')) usage(); loop = atoi(s); break; @@ -42,13 +42,13 @@ main(int argc, char *argv[]) break; case 'd': s = ARGF(); - if(s==nil || !isdigit(s[0])) + if(s==nil || !isdigit((uchar)s[0])) usage(); dt = atoi(s); break; case 't': s = ARGF(); - if(s==nil || !isdigit(s[0])) + if(s==nil || !isdigit((uchar)s[0])) usage(); trans = atoi(s); if(trans > 255) @@ -101,7 +101,7 @@ main(int argc, char *argv[]) usage(); }else s = &argv[j][2]; - if(!isdigit(s[0])) + if(!isdigit((uchar)s[0])) usage(); dt = atoi(s); if(j == argc-1) /* last argument must be file */ diff --git a/src/cmd/pic/picl.lx b/src/cmd/pic/picl.lx index da29d246..45130f24 100644 --- a/src/cmd/pic/picl.lx +++ b/src/cmd/pic/picl.lx @@ -248,7 +248,7 @@ WS [ \t] pbstr(p->s_val.p); dprintf("pushing back `%s'\n", p->s_val.p); } - } else if (islower(yytext[0])) { + } else if (islower((unsigned char)yytext[0])) { yylval.p = tostring(yytext); return(VARNAME); } else { diff --git a/src/cmd/troff/n10.c b/src/cmd/troff/n10.c index eaa5a57a..b6be4c51 100644 --- a/src/cmd/troff/n10.c +++ b/src/cmd/troff/n10.c @@ -52,7 +52,7 @@ static char *parse(char *s, int typeit) /* convert \0, etc to nroff driving tabl if (isdigit((uchar)s[0]) && isdigit((uchar)s[1]) && isdigit((uchar)s[2])) { *t++ = (s[0]-'0')<<6 | (s[1]-'0')<<3 | s[2]-'0'; s += 2; - } else if (isdigit(s[0])) { + } else if (isdigit((uchar)s[0])) { *t++ = *s - '0'; } else if (*s == 'b') { *t++ = '\b'; diff --git a/src/libdisk/disk.c b/src/libdisk/disk.c index bb34b650..45836160 100644 --- a/src/libdisk/disk.c +++ b/src/libdisk/disk.c @@ -307,7 +307,7 @@ opendisk(char *disk, int rdonly, int noctl) /* check for floppy(3) disk */ if(strlen(p) >= 7) { q = p+strlen(p)-7; - if(q[0] == 'f' && q[1] == 'd' && isdigit(q[2]) && strcmp(q+3, "disk") == 0) { + if(q[0] == 'f' && q[1] == 'd' && isdigit((uchar)q[2]) && strcmp(q+3, "disk") == 0) { strcpy(q+3, "ctl"); if((d->ctlfd = open(p, ORDWR)) >= 0) { *q = '\0'; |