aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-01 15:01:00 +0000
committerrsc <devnull@localhost>2005-11-01 15:01:00 +0000
commit604ad4d8ff971314f37440963f4ad8e6ea79aacc (patch)
tree7d67c42a813cf686592836819bfdd50933e6a0f3 /src/cmd/jpg
parent24d56929770f47314bfbebed9325dd5bcdaa8771 (diff)
downloadplan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.tar.gz
plan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.tar.bz2
plan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.zip
isdigit (Tom Miller)
Diffstat (limited to 'src/cmd/jpg')
-rw-r--r--src/cmd/jpg/togif.c8
1 files changed, 4 insertions, 4 deletions
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 */