summaryrefslogtreecommitdiffstats
path: root/larn
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1999-10-04 23:26:59 +0000
committerlukem <lukem@NetBSD.org>1999-10-04 23:26:59 +0000
commit36a67d38f8e835f867ca232e5baa4965bf1fd405 (patch)
treea4003f08f7ef5a5ccf409deee5a69d166b6d6fb0 /larn
parent66dcf6ac131bfb208ed57aa184d0e385386590ee (diff)
downloadbsdgames-darwin-36a67d38f8e835f867ca232e5baa4965bf1fd405.tar.gz
bsdgames-darwin-36a67d38f8e835f867ca232e5baa4965bf1fd405.tar.zst
bsdgames-darwin-36a67d38f8e835f867ca232e5baa4965bf1fd405.zip
update after change to return value of tputs() third argument
Diffstat (limited to 'larn')
-rw-r--r--larn/extern.h4
-rw-r--r--larn/io.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/larn/extern.h b/larn/extern.h
index 17f65bf6..bb1b26f9 100644
--- a/larn/extern.h
+++ b/larn/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.1 1997/10/18 20:03:17 christos Exp $ */
+/* $NetBSD: extern.h,v 1.2 1999/10/04 23:27:02 lukem Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -154,7 +154,7 @@ void cl_dn __P((int, int));
void standout __P((char *));
void set_score_output __P((void));
void lflush __P((void));
-void xputchar __P((int));
+int xputchar __P((int));
void flush_buf __P((void));
char *tmcapcnv __P((char *, char *));
void beep __P((void));
diff --git a/larn/io.c b/larn/io.c
index b003e74b..5d9d355e 100644
--- a/larn/io.c
+++ b/larn/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.7 1997/10/18 20:03:26 christos Exp $ */
+/* $NetBSD: io.c,v 1.8 1999/10/04 23:27:02 lukem Exp $ */
/*
* io.c Larn is copyrighted 1986 by Noah Morgan.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: io.c,v 1.7 1997/10/18 20:03:26 christos Exp $");
+__RCSID("$NetBSD: io.c,v 1.8 1999/10/04 23:27:02 lukem Exp $");
#endif /* not lint */
#include "header.h"
@@ -1047,13 +1047,14 @@ static int vindex = 0;
/*
* xputchar(ch) Print one character in decoded output buffer.
*/
-void
+int
xputchar(c)
int c;
{
outbuf[vindex++] = c;
if (vindex >= BUFBIG)
flush_buf();
+ return (0);
}
/*