From 75e816c996bb81ac1309ca7319d95880b529d118 Mon Sep 17 00:00:00 2001 From: Peter Valchev Date: Sun, 24 Feb 2002 09:07:47 +0000 Subject: getchar fixes; ok pjanzen --- games/trek/getpar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'games/trek/getpar.c') diff --git a/games/trek/getpar.c b/games/trek/getpar.c index f340c1bc784..853cb0483ca 100644 --- a/games/trek/getpar.c +++ b/games/trek/getpar.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getpar.c,v 1.5 2002/02/16 21:27:12 millert Exp $ */ +/* $OpenBSD: getpar.c,v 1.6 2002/02/24 09:07:46 pvalchev Exp $ */ /* $NetBSD: getpar.c,v 1.4 1995/04/24 12:25:57 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: getpar.c,v 1.5 2002/02/16 21:27:12 millert Exp $"; +static char rcsid[] = "$OpenBSD: getpar.c,v 1.6 2002/02/24 09:07:46 pvalchev Exp $"; #endif #endif /* not lint */ @@ -241,7 +241,7 @@ getstrpar(s, r, l, t) int testnl() { - register char c; + int c; while ((c = getchar()) != '\n') if ((c >= '0' && c <= '9') || c == '.' || c == '!' || @@ -262,7 +262,7 @@ testnl() void skiptonl(c) - char c; + int c; { while (c != '\n') if (!(c = getchar())) @@ -279,7 +279,7 @@ skiptonl(c) static int testterm() { - char c; + int c; if (!(c = getchar())) return (1); @@ -301,9 +301,9 @@ testterm() int readdelim(d) - char d; + int d; { - register char c; + int c; while ((c = getchar())) { -- cgit v1.2.3