Module Name: src Committed By: christos Date: Wed Aug 5 19:34:09 UTC 2009
Modified Files: src/games/robots: main.c Log Message: don't use char values for functions that can return -1; chars are not always signed. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/games/robots/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/robots/main.c diff -u src/games/robots/main.c:1.30 src/games/robots/main.c:1.31 --- src/games/robots/main.c:1.30 Wed Aug 5 00:03:47 2009 +++ src/games/robots/main.c Wed Aug 5 15:34:09 2009 @@ -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 @@ #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 @@ 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)