From 4cb1100e13371f1523900523aba506ae1c62e44c Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 19 Jun 2012 05:45:00 +0000 Subject: [PATCH] WARNS=5 --- hangman/endgame.c | 6 +++--- hangman/getguess.c | 8 ++++---- hangman/getword.c | 6 +++--- hangman/main.c | 11 ++++------- hangman/playgame.c | 6 +++--- hangman/prdata.c | 6 +++--- hangman/prman.c | 6 +++--- hangman/prword.c | 6 +++--- hangman/setup.c | 6 +++--- 9 files changed, 29 insertions(+), 32 deletions(-) diff --git a/hangman/endgame.c b/hangman/endgame.c index c329dbd1..e9b3fb63 100644 --- a/hangman/endgame.c +++ b/hangman/endgame.c @@ -1,4 +1,4 @@ -/* $NetBSD: endgame.c,v 1.5 2003/08/07 09:37:20 agc Exp $ */ +/* $NetBSD: endgame.c,v 1.6 2012/06/19 05:45:00 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)endgame.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: endgame.c,v 1.5 2003/08/07 09:37:20 agc Exp $"); +__RCSID("$NetBSD: endgame.c,v 1.6 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -45,7 +45,7 @@ __RCSID("$NetBSD: endgame.c,v 1.5 2003/08/07 09:37:20 agc Exp $"); * Do what's necessary at the end of the game */ void -endgame() +endgame(void) { char ch; diff --git a/hangman/getguess.c b/hangman/getguess.c index 0dbac3b3..691c60e4 100644 --- a/hangman/getguess.c +++ b/hangman/getguess.c @@ -1,4 +1,4 @@ -/* $NetBSD: getguess.c,v 1.8 2003/08/07 09:37:21 agc Exp $ */ +/* $NetBSD: getguess.c,v 1.9 2012/06/19 05:45:00 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getguess.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getguess.c,v 1.8 2003/08/07 09:37:21 agc Exp $"); +__RCSID("$NetBSD: getguess.c,v 1.9 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -46,7 +46,7 @@ __RCSID("$NetBSD: getguess.c,v 1.8 2003/08/07 09:37:21 agc Exp $"); * Get another guess */ void -getguess() +getguess(void) { int i; int ch; @@ -91,7 +91,7 @@ getguess() * Read a character from the input */ int -readch() +readch(void) { int cnt; char ch; diff --git a/hangman/getword.c b/hangman/getword.c index 1b5396a9..ccb5725f 100644 --- a/hangman/getword.c +++ b/hangman/getword.c @@ -1,4 +1,4 @@ -/* $NetBSD: getword.c,v 1.9 2004/11/05 21:30:32 dsl Exp $ */ +/* $NetBSD: getword.c,v 1.10 2012/06/19 05:45:00 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)getword.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getword.c,v 1.9 2004/11/05 21:30:32 dsl Exp $"); +__RCSID("$NetBSD: getword.c,v 1.10 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -45,7 +45,7 @@ __RCSID("$NetBSD: getword.c,v 1.9 2004/11/05 21:30:32 dsl Exp $"); * Get a valid word out of the dictionary file */ void -getword() +getword(void) { FILE *inf; char *wp, *gp; diff --git a/hangman/main.c b/hangman/main.c index 8ddcb804..d7c25785 100644 --- a/hangman/main.c +++ b/hangman/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.14 2008/08/08 16:10:47 drochner Exp $ */ +/* $NetBSD: main.c,v 1.15 2012/06/19 05:45:00 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.14 2008/08/08 16:10:47 drochner Exp $"); +__RCSID("$NetBSD: main.c,v 1.15 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -50,9 +50,7 @@ __RCSID("$NetBSD: main.c,v 1.14 2008/08/08 16:10:47 drochner Exp $"); * This game written by Ken Arnold. */ int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch; @@ -92,8 +90,7 @@ main(argc, argv) * Die properly. */ void -die(dummy) - int dummy __unused; +die(int dummy __unused) { mvcur(0, COLS - 1, LINES - 1, 0); endwin(); diff --git a/hangman/playgame.c b/hangman/playgame.c index 0a7f3d39..12b5d858 100644 --- a/hangman/playgame.c +++ b/hangman/playgame.c @@ -1,4 +1,4 @@ -/* $NetBSD: playgame.c,v 1.5 2003/08/07 09:37:22 agc Exp $ */ +/* $NetBSD: playgame.c,v 1.6 2012/06/19 05:45:00 dholland Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)playgame.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: playgame.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); +__RCSID("$NetBSD: playgame.c,v 1.6 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -45,7 +45,7 @@ __RCSID("$NetBSD: playgame.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); * play a game */ void -playgame() +playgame(void) { bool *bp; diff --git a/hangman/prdata.c b/hangman/prdata.c index c5959009..148d996b 100644 --- a/hangman/prdata.c +++ b/hangman/prdata.c @@ -1,4 +1,4 @@ -/* $NetBSD: prdata.c,v 1.5 2003/08/07 09:37:22 agc Exp $ */ +/* $NetBSD: prdata.c,v 1.6 2012/06/19 05:45:00 dholland Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prdata.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prdata.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); +__RCSID("$NetBSD: prdata.c,v 1.6 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -45,7 +45,7 @@ __RCSID("$NetBSD: prdata.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); * Print out the current guesses */ void -prdata() +prdata(void) { bool *bp; diff --git a/hangman/prman.c b/hangman/prman.c index f1b2c50d..6a6572f2 100644 --- a/hangman/prman.c +++ b/hangman/prman.c @@ -1,4 +1,4 @@ -/* $NetBSD: prman.c,v 1.5 2003/08/07 09:37:22 agc Exp $ */ +/* $NetBSD: prman.c,v 1.6 2012/06/19 05:45:00 dholland Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prman.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prman.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); +__RCSID("$NetBSD: prman.c,v 1.6 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -46,7 +46,7 @@ __RCSID("$NetBSD: prman.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); * of incorrect guesses. */ void -prman() +prman(void) { int i; diff --git a/hangman/prword.c b/hangman/prword.c index 06b108a5..1bf9578a 100644 --- a/hangman/prword.c +++ b/hangman/prword.c @@ -1,4 +1,4 @@ -/* $NetBSD: prword.c,v 1.5 2003/08/07 09:37:22 agc Exp $ */ +/* $NetBSD: prword.c,v 1.6 2012/06/19 05:45:00 dholland Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prword.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prword.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); +__RCSID("$NetBSD: prword.c,v 1.6 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -45,7 +45,7 @@ __RCSID("$NetBSD: prword.c,v 1.5 2003/08/07 09:37:22 agc Exp $"); * Print out the current state of the word */ void -prword() +prword(void) { move(KNOWNY, KNOWNX + sizeof "Word: "); addstr(Known); diff --git a/hangman/setup.c b/hangman/setup.c index aa07a0e9..d5979f81 100644 --- a/hangman/setup.c +++ b/hangman/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.10 2003/08/07 09:37:22 agc Exp $ */ +/* $NetBSD: setup.c,v 1.11 2012/06/19 05:45:00 dholland Exp $ */ /*- * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: setup.c,v 1.10 2003/08/07 09:37:22 agc Exp $"); +__RCSID("$NetBSD: setup.c,v 1.11 2012/06/19 05:45:00 dholland Exp $"); #endif #endif /* not lint */ @@ -47,7 +47,7 @@ __RCSID("$NetBSD: setup.c,v 1.10 2003/08/07 09:37:22 agc Exp $"); * Set up the strings on the screen. */ void -setup() +setup(void) { const char *const *sp; static struct stat sbuf; -- 2.47.1