From 00c8c9e01d1674e481086034a80ead44508677b9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 18 Feb 2002 06:45:28 +0000 Subject: more signed char issues --- games/bs/bs.c | 6 +++--- games/canfield/canfield/canfield.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/games/bs/bs.c b/games/bs/bs.c index affb871ed73..92f20dff92f 100644 --- a/games/bs/bs.c +++ b/games/bs/bs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bs.c,v 1.11 2001/06/23 23:04:33 pjanzen Exp $ */ +/* $OpenBSD: bs.c,v 1.12 2002/02/18 06:45:26 deraadt Exp $ */ /* * bs.c - original author: Bruce Holloway * salvo option by: Chuck A DeGaul @@ -11,7 +11,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: bs.c,v 1.11 2001/06/23 23:04:33 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: bs.c,v 1.12 2002/02/18 06:45:26 deraadt Exp $"; #endif /* #define _POSIX_SOURCE */ /* (setegid, random) */ @@ -126,7 +126,7 @@ typedef struct char hits; /* how many times has this ship been hit? */ char symbol; /* symbol for game purposes */ char length; /* length of ship */ - char x, y; /* coordinates of ship start point */ + signed char x, y; /* coordinates of ship start point */ unsigned char dir; /* direction of `bow' */ bool placed; /* has it been placed on the board? */ } diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c index ba0e2a1c2a8..25b0e1772f3 100644 --- a/games/canfield/canfield/canfield.c +++ b/games/canfield/canfield/canfield.c @@ -1,4 +1,4 @@ -/* $OpenBSD: canfield.c,v 1.6 2002/02/16 21:27:09 millert Exp $ */ +/* $OpenBSD: canfield.c,v 1.7 2002/02/18 06:45:27 deraadt Exp $ */ /* $NetBSD: canfield.c,v 1.7 1995/05/13 07:28:35 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: canfield.c,v 1.6 2002/02/16 21:27:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: canfield.c,v 1.7 2002/02/18 06:45:27 deraadt Exp $"; #endif #endif /* not lint */ @@ -1369,8 +1369,8 @@ getcmd(row, col, cp) int row, col; const char *cp; { - char cmd[2] = { '\0', '\0'}, ch; - int i; + char cmd[2] = { '\0', '\0'}; + int ch, i; i = 0; move(row, col); -- cgit v1.2.3