Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/hangman WARNS=5
details: https://anonhg.NetBSD.org/src/rev/6b5c4bb47b54
branches: trunk
changeset: 779786:6b5c4bb47b54
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Jun 19 05:45:00 2012 +0000
description:
WARNS=5
diffstat:
games/hangman/endgame.c | 6 +++---
games/hangman/getguess.c | 8 ++++----
games/hangman/getword.c | 6 +++---
games/hangman/main.c | 11 ++++-------
games/hangman/playgame.c | 6 +++---
games/hangman/prdata.c | 6 +++---
games/hangman/prman.c | 6 +++---
games/hangman/prword.c | 6 +++---
games/hangman/setup.c | 6 +++---
9 files changed, 29 insertions(+), 32 deletions(-)
diffs (264 lines):
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/endgame.c
--- a/games/hangman/endgame.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/endgame.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Do what's necessary at the end of the game
*/
void
-endgame()
+endgame(void)
{
char ch;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/getguess.c
--- a/games/hangman/getguess.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/getguess.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Get another guess
*/
void
-getguess()
+getguess(void)
{
int i;
int ch;
@@ -91,7 +91,7 @@
* Read a character from the input
*/
int
-readch()
+readch(void)
{
int cnt;
char ch;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/getword.c
--- a/games/hangman/getword.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/getword.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Get a valid word out of the dictionary file
*/
void
-getword()
+getword(void)
{
FILE *inf;
char *wp, *gp;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/main.c
--- a/games/hangman/main.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/main.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
#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 @@
* 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 @@
* Die properly.
*/
void
-die(dummy)
- int dummy __unused;
+die(int dummy __unused)
{
mvcur(0, COLS - 1, LINES - 1, 0);
endwin();
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/playgame.c
--- a/games/hangman/playgame.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/playgame.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* play a game
*/
void
-playgame()
+playgame(void)
{
bool *bp;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/prdata.c
--- a/games/hangman/prdata.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/prdata.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Print out the current guesses
*/
void
-prdata()
+prdata(void)
{
bool *bp;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/prman.c
--- a/games/hangman/prman.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/prman.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* of incorrect guesses.
*/
void
-prman()
+prman(void)
{
int i;
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/prword.c
--- a/games/hangman/prword.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/prword.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Print out the current state of the word
*/
void
-prword()
+prword(void)
{
move(KNOWNY, KNOWNX + sizeof "Word: ");
addstr(Known);
diff -r ef8e51c5a228 -r 6b5c4bb47b54 games/hangman/setup.c
--- a/games/hangman/setup.c Tue Jun 19 05:30:43 2012 +0000
+++ b/games/hangman/setup.c Tue Jun 19 05:45:00 2012 +0000
@@ -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 @@
* Set up the strings on the screen.
*/
void
-setup()
+setup(void)
{
const char *const *sp;
static struct stat sbuf;
Home |
Main Index |
Thread Index |
Old Index