summaryrefslogtreecommitdiffstats
path: root/hunt/hunt/otto.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 /hunt/hunt/otto.c
parentef4d58572f66f86a3db4aa555d139fee63cca10c (diff)
downloadbsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.tar.gz
bsdgames-darwin-9649fe0209de88926626165951e2db3043b73ee6.zip
Add (unsigned char) cast to ctype functions
Diffstat (limited to 'hunt/hunt/otto.c')
-rw-r--r--hunt/hunt/otto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c
index 3fcaaeed..a2c97e0c 100644
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $ */
+/* $NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $ */
# ifdef OTTO
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -45,7 +45,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $");
+__RCSID("$NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $");
#endif /* not lint */
# include <sys/time.h>
@@ -438,7 +438,7 @@ face_and_move_direction(rel_dir, distance)
int i;
struct item items[NUMDIRECTIONS];
- command[comlen++] = toupper(cmd);
+ command[comlen++] = toupper((unsigned char)cmd);
if (distance == 0) {
/* rotate ottolook's to be in right position */
for (i = 0; i < NUMDIRECTIONS; i++)