summaryrefslogtreecommitdiffstats
path: root/sail/dr_1.c
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2004-11-05 21:30:31 +0000
committerdsl <dsl@NetBSD.org>2004-11-05 21:30:31 +0000
commit9649fe0209de88926626165951e2db3043b73ee6 (patch)
treef7d328358e6de9a877c8d0fc24f5ae49ad21f031 /sail/dr_1.c
parentef4d58572f66f86a3db4aa555d139fee63cca10c (diff)
downloadbsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.gz
bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.zip
Add (unsigned char) cast to ctype functions
Diffstat (limited to 'sail/dr_1.c')
-rw-r--r--sail/dr_1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sail/dr_1.c b/sail/dr_1.c
index 1d8b5444..df2ade32 100644
--- a/sail/dr_1.c
+++ b/sail/dr_1.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_1.c,v 1.20 2004/09/07 13:20:39 jrf Exp $ */
+/* $NetBSD: dr_1.c,v 1.21 2004/11/05 21:30:32 dsl Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_1.c,v 1.20 2004/09/07 13:20:39 jrf Exp $");
+__RCSID("$NetBSD: dr_1.c,v 1.21 2004/11/05 21:30:32 dsl Exp $");
#endif
#endif /* not lint */
@@ -425,8 +425,7 @@ next(void)
if (tp == 0)
p = "Driver";
else {
- if (islower(*tp))
- *tp = toupper(*tp);
+ *tp = toupper((unsigned char)*tp);
p = tp;
}
strlcpy(bestship->file->captain, p,