diff options
author | dsl <dsl@NetBSD.org> | 2004-11-05 21:30:31 +0000 |
---|---|---|
committer | dsl <dsl@NetBSD.org> | 2004-11-05 21:30:31 +0000 |
commit | 9649fe0209de88926626165951e2db3043b73ee6 (patch) | |
tree | f7d328358e6de9a877c8d0fc24f5ae49ad21f031 /hunt/hunt/hunt.c | |
parent | ef4d58572f66f86a3db4aa555d139fee63cca10c (diff) | |
download | bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.gz bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.zst bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.zip |
Add (unsigned char) cast to ctype functions
Diffstat (limited to 'hunt/hunt/hunt.c')
-rw-r--r-- | hunt/hunt/hunt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c index 898cd019..48e717b7 100644 --- a/hunt/hunt/hunt.c +++ b/hunt/hunt/hunt.c @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $ */ +/* $NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.23 2004/11/05 21:30:32 dsl Exp $"); #endif /* not lint */ # include <sys/param.h> @@ -142,7 +142,7 @@ main(ac, av) break; case 't': team = *optarg; - if (!isdigit(team)) { + if (!isdigit((unsigned char)team)) { warnx("Team names must be numeric"); team = ' '; } @@ -1048,7 +1048,7 @@ env_init(enter_status) # endif else if (strncmp(envp, "team=", s - envp + 1) == 0) { team = *(s + 1); - if (!isdigit(team)) + if (!isdigit((unsigned char)team)) team = ' '; if ((s = strchr(envp, ',')) == NULL) { *envp = '\0'; @@ -1111,7 +1111,7 @@ again: goto again; } for (cp = name; *cp != '\0'; cp++) - if (!isprint(*cp)) { + if (!isprint((unsigned char)*cp)) { name[0] = '\0'; printf("Illegal character in your code name.\n"); goto again; |