summaryrefslogtreecommitdiff
path: root/games/trek/getpar.c
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2002-02-24 09:07:47 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2002-02-24 09:07:47 +0000
commit75e816c996bb81ac1309ca7319d95880b529d118 (patch)
tree5121a986bbd7ffd501e0db55eeaf8947404a1b7d /games/trek/getpar.c
parent5ac39e432d90061068651f5445bb2d8631dab00a (diff)
getchar fixes; ok pjanzen
Diffstat (limited to 'games/trek/getpar.c')
-rw-r--r--games/trek/getpar.c14
1 files changed, 7 insertions, 7 deletions
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()))
{