summaryrefslogtreecommitdiffstats
path: root/larn/help.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-03 21:24:58 +0000
committerdholland <dholland@NetBSD.org>2008-02-03 21:24:58 +0000
commit350aac765d3e94494f9b3db3a16f3b09d454bd5b (patch)
tree2846227f36e683b4687ad4fc15df7bcc81d6e940 /larn/help.c
parent55b806c4924f962dafc951ce61d022e5123a636d (diff)
downloadbsdgames-darwin-350aac765d3e94494f9b3db3a16f3b09d454bd5b.tar.gz
bsdgames-darwin-350aac765d3e94494f9b3db3a16f3b09d454bd5b.tar.zst
bsdgames-darwin-350aac765d3e94494f9b3db3a16f3b09d454bd5b.zip
Once upon a time, larn 12.0 had functions named getchar() and putchar()
that conflicted with libc. We changed them to lgetchar() and xputchar() respectively; larn 12.2 changed them to ttgetch() and ttputch(). After reflecting on this for a while I've decided to adopt the larn 12.2 names; not so much for compatibility but for consistency going forward. So, massrename them. Also make ttputch() static.
Diffstat (limited to 'larn/help.c')
-rw-r--r--larn/help.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/larn/help.c b/larn/help.c
index 47350d10..05e7656b 100644
--- a/larn/help.c
+++ b/larn/help.c
@@ -1,9 +1,9 @@
-/* $NetBSD: help.c,v 1.6 2008/02/03 19:20:41 dholland Exp $ */
+/* $NetBSD: help.c,v 1.7 2008/02/03 21:24:58 dholland Exp $ */
/* help.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: help.c,v 1.6 2008/02/03 19:20:41 dholland Exp $");
+__RCSID("$NetBSD: help.c,v 1.7 2008/02/03 21:24:58 dholland Exp $");
#endif /* not lint */
#include <unistd.h>
@@ -54,7 +54,7 @@ help()
lprcat(" for more help ---- ");
i = 0;
while ((i != ' ') && (i != '\n') && (i != '\33'))
- i = lgetchar();
+ i = ttgetch();
if ((i == '\n') || (i == '\33')) {
lrclose();
setscroll();
@@ -105,7 +105,7 @@ retcont()
lprcat("Press ");
standout("return");
lprcat(" to continue: ");
- while (lgetchar() != '\n');
+ while (ttgetch() != '\n');
setscroll();
}