summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--backgammon/common_source/back.h4
-rw-r--r--backgammon/common_source/subs.c7
-rw-r--r--hack/extern.h4
-rw-r--r--hack/hack.termcap.c8
-rw-r--r--larn/extern.h4
-rw-r--r--larn/io.c7
-rw-r--r--robots/main.c8
-rw-r--r--tetris/screen.c6
-rw-r--r--tetris/screen.h4
9 files changed, 27 insertions, 25 deletions
diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h
index 4f29b622..cee5e6d3 100644
--- a/backgammon/common_source/back.h
+++ b/backgammon/common_source/back.h
@@ -1,4 +1,4 @@
-/* $NetBSD: back.h,v 1.11 1999/07/26 20:56:03 hubertf Exp $ */
+/* $NetBSD: back.h,v 1.12 1999/10/04 23:26:59 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -133,7 +133,7 @@ extern int curc; /* column position of cursor */
extern int begscr; /* 'beginning' of screen
(not including board) */
-void addbuf __P((int));
+int addbuf __P((int));
void backone __P((int));
void bsect __P((int, int, int, int));
void buflush __P((void));
diff --git a/backgammon/common_source/subs.c b/backgammon/common_source/subs.c
index ed1ff479..32ae1f4b 100644
--- a/backgammon/common_source/subs.c
+++ b/backgammon/common_source/subs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $ */
+/* $NetBSD: subs.c,v 1.13 1999/10/04 23:26:59 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $");
+__RCSID("$NetBSD: subs.c,v 1.13 1999/10/04 23:26:59 lukem Exp $");
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ errexit(s)
getout(0);
}
-void
+int
addbuf(c)
int c;
{
@@ -84,6 +84,7 @@ addbuf(c)
buffnum = 0;
}
outbuff[buffnum] = c;
+ return (0);
}
void
diff --git a/hack/extern.h b/hack/extern.h
index 0a207e34..e9b7e0f1 100644
--- a/hack/extern.h
+++ b/hack/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.1 1997/10/19 16:57:28 christos Exp $ */
+/* $NetBSD: extern.h,v 1.2 1999/10/04 23:27:01 lukem Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -507,7 +507,7 @@ void end_screen __P((void));
void curs __P((int, int));
void nocmov __P((int, int));
void cmov __P((int, int));
-void xputc __P((int));
+int xputc __P((int));
void xputs __P((char *));
void cl_end __P((void));
void clear_screen __P((void));
diff --git a/hack/hack.termcap.c b/hack/hack.termcap.c
index 37a63f3c..2d48698d 100644
--- a/hack/hack.termcap.c
+++ b/hack/hack.termcap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.termcap.c,v 1.8 1999/08/14 16:36:42 tron Exp $ */
+/* $NetBSD: hack.termcap.c,v 1.9 1999/10/04 23:27:01 lukem Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.termcap.c,v 1.8 1999/08/14 16:36:42 tron Exp $");
+__RCSID("$NetBSD: hack.termcap.c,v 1.9 1999/10/04 23:27:01 lukem Exp $");
#endif /* not lint */
#include <string.h>
@@ -185,11 +185,11 @@ cmov(x, y)
curx = x;
}
-void
+int
xputc(c)
char c;
{
- (void) fputc(c, stdout);
+ return (fputc(c, stdout));
}
void
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);
}
/*
diff --git a/robots/main.c b/robots/main.c
index af8e8b7a..33eec64a 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.11 1999/09/12 09:02:22 jsm Exp $ */
+/* $NetBSD: main.c,v 1.12 1999/10/04 23:27:02 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.11 1999/09/12 09:02:22 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.12 1999/10/04 23:27:02 lukem Exp $");
#endif
#endif /* not lint */
@@ -193,11 +193,11 @@ main(ac, av)
return(0);
}
-void
+int
__cputchar(ch)
int ch;
{
- (void)putchar(ch);
+ return (putchar(ch));
}
/*
diff --git a/tetris/screen.c b/tetris/screen.c
index f27fb552..194c4f2f 100644
--- a/tetris/screen.c
+++ b/tetris/screen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.12 1999/09/08 21:45:31 jsm Exp $ */
+/* $NetBSD: screen.c,v 1.13 1999/10/04 23:27:03 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -127,12 +127,12 @@ static char combuf[1024], tbuf[1024];
/*
* Routine used by tputs().
*/
-void
+int
put(c)
int c;
{
- (void) putchar(c);
+ return (putchar(c));
}
/*
diff --git a/tetris/screen.h b/tetris/screen.h
index 319e356d..d17544cb 100644
--- a/tetris/screen.h
+++ b/tetris/screen.h
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.h,v 1.3 1997/10/14 01:14:34 lukem Exp $ */
+/* $NetBSD: screen.h,v 1.4 1999/10/04 23:27:03 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -49,7 +49,7 @@ char *SOstr; /* begin standout mode */
*/
#define putpad(s) tputs(s, 1, put)
-void put __P((int)); /* just calls putchar; for tputs */
+int put __P((int)); /* just calls putchar; for tputs */
void scr_clear __P((void));
void scr_end __P((void));
void scr_init __P((void));