diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-24 21:32:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-24 21:32:33 +0000 |
commit | e4ec95a467c44394ef93cf84c849fda6e6f248fa (patch) | |
tree | b8c9af86534578db343e9245cca85fc8cc106491 /usr.sbin/lpr/common_source | |
parent | 432b5bbdbf330ee3fc70fec50f8d77f2eae0b548 (diff) |
more ctype cleanups
checked by jca
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/displayq.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/common_source/rmjob.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index ffc15f5fa7f..4db659cc62c 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: displayq.c,v 1.33 2013/10/27 18:49:25 guenther Exp $ */ +/* $OpenBSD: displayq.c,v 1.34 2013/11/24 21:32:32 deraadt Exp $ */ /* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */ /* @@ -412,7 +412,7 @@ inlist(char *name, char *file) /* * Check the request list */ - for (n = 0, cp = file+3; isdigit(*cp); ) + for (n = 0, cp = file+3; isdigit((unsigned char)*cp); ) n = n * 10 + (*cp++ - '0'); for (r = requ; r < &requ[requests]; r++) if (*r == n && !strcmp(cp, from)) diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c index 54d9f8a5333..f481a7aabf0 100644 --- a/usr.sbin/lpr/common_source/rmjob.c +++ b/usr.sbin/lpr/common_source/rmjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmjob.c,v 1.20 2012/11/29 02:15:44 guenther Exp $ */ +/* $OpenBSD: rmjob.c,v 1.21 2013/11/24 21:32:32 deraadt Exp $ */ /* $NetBSD: rmjob.c,v 1.16 2000/04/16 14:43:58 mrg Exp $ */ /* @@ -279,7 +279,7 @@ chk(char *file) /* * Check the request list */ - for (n = 0, cp = file+3; isdigit(*cp); ) + for (n = 0, cp = file+3; isdigit((unsigned char)*cp); ) n = n * 10 + (*cp++ - '0'); for (r = requ; r < &requ[requests]; r++) if (*r == n && isowner(line+1, file)) |