From b1c8e14afd5a078ca925fe471733a693ca4a8076 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 5 Feb 2001 00:57:32 +0000 Subject: - rename getchar to lgetchar to avoid conflicts with the stdio getchar - fix redundant decls and nested externs - use snprintf instead of sprintf --- larn/help.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'larn/help.c') 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 #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 @@ -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(); } -- cgit v1.2.3