summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2009-08-05 19:34:09 +0000
committerchristos <christos@NetBSD.org>2009-08-05 19:34:09 +0000
commit7db3605b03e7837c31f94dcc5bd8c27ac68b2d53 (patch)
treed4fae2e970c86481d1dbcdbc615ee3549b43dd5d /robots
parenta7345209258b0ffde396d087589510b8e7c3bb50 (diff)
downloadbsdgames-darwin-7db3605b03e7837c31f94dcc5bd8c27ac68b2d53.tar.gz
bsdgames-darwin-7db3605b03e7837c31f94dcc5bd8c27ac68b2d53.tar.zst
bsdgames-darwin-7db3605b03e7837c31f94dcc5bd8c27ac68b2d53.zip
don't use char values for functions that can return -1; chars are not always
signed.
Diffstat (limited to 'robots')
-rw-r--r--robots/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/robots/main.c b/robots/main.c
index 75a4555a..a57cd0dd 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.30 2009/08/05 04:03:47 dholland Exp $ */
+/* $NetBSD: main.c,v 1.31 2009/08/05 19:34:09 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.30 2009/08/05 04:03:47 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.31 2009/08/05 19:34:09 christos Exp $");
#endif
#endif /* not lint */
@@ -65,8 +65,7 @@ main(int argc, char **argv)
int score_wfd; /* high score writable file descriptor */
int score_err = 0; /* hold errno from score file open */
int maximum = 0;
- char ch;
- int i;
+ int ch, i;
score_wfd = open(Scorefile, O_RDWR);
if (score_wfd < 0)