diff options
author | christos <christos@NetBSD.org> | 2001-02-05 00:57:32 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2001-02-05 00:57:32 +0000 |
commit | b1c8e14afd5a078ca925fe471733a693ca4a8076 (patch) | |
tree | 479753089c657c4900becbda1592945edbc418bb /larn/help.c | |
parent | 5813ff28d2110a139386e10f5e3977f3b88dbda8 (diff) | |
download | bsdgames-darwin-b1c8e14afd5a078ca925fe471733a693ca4a8076.tar.gz bsdgames-darwin-b1c8e14afd5a078ca925fe471733a693ca4a8076.tar.zst bsdgames-darwin-b1c8e14afd5a078ca925fe471733a693ca4a8076.zip |
- rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf
Diffstat (limited to 'larn/help.c')
-rw-r--r-- | larn/help.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/larn/help.c b/larn/help.c index d0c1af04..42c87e6d 100644 --- a/larn/help.c +++ b/larn/help.c @@ -1,9 +1,9 @@ -/* $NetBSD: help.c,v 1.4 1997/10/18 20:03:24 christos Exp $ */ +/* $NetBSD: help.c,v 1.5 2001/02/05 00:57:33 christos Exp $ */ /* help.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: help.c,v 1.4 1997/10/18 20:03:24 christos Exp $"); +__RCSID("$NetBSD: help.c,v 1.5 2001/02/05 00:57:33 christos Exp $"); #endif /* not lint */ #include <unistd.h> @@ -51,7 +51,7 @@ help() lprcat(" for more help ---- "); i = 0; while ((i != ' ') && (i != '\n') && (i != '\33')) - i = getchar(); + i = lgetchar(); if ((i == '\n') || (i == '\33')) { lrclose(); setscroll(); @@ -102,7 +102,7 @@ retcont() lprcat("Press "); standout("return"); lprcat(" to continue: "); - while (getchar() != '\n'); + while (lgetchar() != '\n'); setscroll(); } |