From 2ce4ef15e68c96eb809002527ee5bfa28c954011 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 14 Oct 1997 01:14:20 +0000 Subject: [PATCH] use --- games/tetris/scores.c | 8 ++------ games/tetris/screen.c | 17 ++++------------- games/tetris/screen.h | 4 ++-- libexec/telnetd/telnetd.c | 6 +++--- 4 files changed, 11 insertions(+), 24 deletions(-) diff --git a/games/tetris/scores.c b/games/tetris/scores.c index 5a35888dcb0f..6afb11159ae9 100644 --- a/games/tetris/scores.c +++ b/games/tetris/scores.c @@ -1,4 +1,4 @@ -/* $NetBSD: scores.c,v 1.3 1997/01/13 06:51:57 tls Exp $ */ +/* $NetBSD: scores.c,v 1.4 1997/10/14 01:14:20 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -52,13 +52,9 @@ #include #include #include +#include #include -/* - * XXX - need a - */ -int tputs __P((const char *, int, int (*)(int))); - #include "pathnames.h" #include "screen.h" #include "scores.h" diff --git a/games/tetris/screen.c b/games/tetris/screen.c index 9598227d3f84..6c83147dfb33 100644 --- a/games/tetris/screen.c +++ b/games/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.5 1997/10/12 02:03:45 lukem Exp $ */ +/* $NetBSD: screen.c,v 1.6 1997/10/14 01:14:28 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -59,14 +60,6 @@ #include "screen.h" #include "tetris.h" -/* - * XXX - need a - */ -int tgetent __P((char *, const char *)); -int tgetflag __P((const char *)); -int tgetnum __P((const char *)); -int tputs __P((const char *, int, int (*)(int))); - static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */ static int curscore; static int isset; /* true => terminal is in game mode */ @@ -75,8 +68,6 @@ static void (*tstp) __P((int)); static void scr_stop __P((int)); static void stopset __P((int)); -extern char *tgetstr __P((char *, char **)); -extern char *tgoto __P((char *, int, int)); /* @@ -136,12 +127,12 @@ static char combuf[1024], tbuf[1024]; /* * Routine used by tputs(). */ -int +void put(c) int c; { - return (putchar(c)); + (void) putchar(c); } /* diff --git a/games/tetris/screen.h b/games/tetris/screen.h index 7bb10ae1261d..319e356dbc39 100644 --- a/games/tetris/screen.h +++ b/games/tetris/screen.h @@ -1,4 +1,4 @@ -/* $NetBSD: screen.h,v 1.2 1995/04/22 07:42:42 cgd Exp $ */ +/* $NetBSD: screen.h,v 1.3 1997/10/14 01:14:34 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -49,7 +49,7 @@ char *SOstr; /* begin standout mode */ */ #define putpad(s) tputs(s, 1, put) -int put __P((int)); /* just calls putchar; for tputs */ +void put __P((int)); /* just calls putchar; for tputs */ void scr_clear __P((void)); void scr_end __P((void)); void scr_init __P((void)); diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 27002de04bef..d3a407f9aa56 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -/* $NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $ */ +/* $NetBSD: telnetd.c,v 1.10 1997/10/14 01:16:43 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $"); +__RCSID("$NetBSD: telnetd.c,v 1.10 1997/10/14 01:16:43 lukem Exp $"); #endif #endif /* not lint */ @@ -49,7 +49,7 @@ __RCSID("$NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $"); #include -int tgetent __P((char *, char *)); /* XXX from */ +#include #include #define P __P