diff options
author | tb <tb@cvs.openbsd.org> | 2016-01-08 13:40:06 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2016-01-08 13:40:06 +0000 |
commit | ec93a54243f48ca266a213a866557f62eb190ca8 (patch) | |
tree | 44b3eaab20e708a1e744cc34c806b188d2f3dcbf /games | |
parent | 74ebd824977841c8ec7f3262ceacd614d0b42c03 (diff) |
add missing 'void'
ok mestre@
Diffstat (limited to 'games')
-rw-r--r-- | games/atc/grammar.y | 4 | ||||
-rw-r--r-- | games/atc/update.c | 4 | ||||
-rw-r--r-- | games/backgammon/common_source/odds.c | 4 | ||||
-rw-r--r-- | games/backgammon/teachgammon/tutor.c | 4 | ||||
-rw-r--r-- | games/hangman/ksyms.c | 8 | ||||
-rw-r--r-- | games/hangman/main.c | 4 | ||||
-rw-r--r-- | games/phantasia/main.c | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/games/atc/grammar.y b/games/atc/grammar.y index 19442905707..d880a1005a6 100644 --- a/games/atc/grammar.y +++ b/games/atc/grammar.y @@ -1,4 +1,4 @@ -/* $OpenBSD: grammar.y,v 1.8 2015/12/31 16:50:29 mestre Exp $ */ +/* $OpenBSD: grammar.y,v 1.9 2016/01/08 13:40:05 tb Exp $ */ /* $NetBSD: grammar.y,v 1.3 1995/03/21 15:03:59 cgd Exp $ */ /*- @@ -358,7 +358,7 @@ check_adir(x, y, dir) } int -checkdefs() +checkdefs(void) { int err = 0; diff --git a/games/atc/update.c b/games/atc/update.c index bfd539fbeec..4c6cd6b6b2a 100644 --- a/games/atc/update.c +++ b/games/atc/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.18 2015/12/31 16:50:29 mestre Exp $ */ +/* $OpenBSD: update.c,v 1.19 2016/01/08 13:40:05 tb Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -54,7 +54,7 @@ setseed(const char *seed) } uint32_t -atcrandom() +atcrandom(void) { if (seeded) return random(); diff --git a/games/backgammon/common_source/odds.c b/games/backgammon/common_source/odds.c index 4642ea3c643..ad4625c561b 100644 --- a/games/backgammon/common_source/odds.c +++ b/games/backgammon/common_source/odds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: odds.c,v 1.6 2015/11/30 08:19:25 tb Exp $ */ +/* $OpenBSD: odds.c,v 1.7 2016/01/08 13:40:05 tb Exp $ */ /* * Copyright (c) 1980, 1993 @@ -56,7 +56,7 @@ odds(int r1, int r2, int val) } int -count() +count(void) { int i, j, total; diff --git a/games/backgammon/teachgammon/tutor.c b/games/backgammon/teachgammon/tutor.c index af9f647626c..bdcba4c4610 100644 --- a/games/backgammon/teachgammon/tutor.c +++ b/games/backgammon/teachgammon/tutor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tutor.c,v 1.7 2015/11/30 08:19:25 tb Exp $ */ +/* $OpenBSD: tutor.c,v 1.8 2016/01/08 13:40:05 tb Exp $ */ /* * Copyright (c) 1980, 1993 @@ -133,7 +133,7 @@ tutor(void) } void -clrest() +clrest(void) { int r, c, j; diff --git a/games/hangman/ksyms.c b/games/hangman/ksyms.c index 2dc6043c83e..18ce231fd22 100644 --- a/games/hangman/ksyms.c +++ b/games/hangman/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.9 2015/12/31 15:20:36 mestre Exp $ */ +/* $OpenBSD: ksyms.c,v 1.10 2016/01/08 13:40:05 tb Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -31,7 +31,7 @@ static int ksyms_elf_parse(void); void -sym_getword() +sym_getword(void) { uint tries; off_t pos; @@ -92,7 +92,7 @@ sym_getword() } int -sym_setup() +sym_setup(void) { if ((symfd = open(Dict_name, O_RDONLY)) < 0) return -1; @@ -106,7 +106,7 @@ sym_setup() } int -ksyms_elf_parse() +ksyms_elf_parse(void) { Elf_Ehdr eh; Elf_Shdr sh; diff --git a/games/hangman/main.c b/games/hangman/main.c index db183316469..63340bf118b 100644 --- a/games/hangman/main.c +++ b/games/hangman/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.15 2015/12/31 15:20:36 mestre Exp $ */ +/* $OpenBSD: main.c,v 1.16 2016/01/08 13:40:05 tb Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/23 08:32:50 cgd Exp $ */ /* @@ -104,7 +104,7 @@ die(int dummy) } __dead void -usage() +usage(void) { (void)fprintf(stderr, "usage: hangman [-k] [-d wordlist]\n"); exit(1); diff --git a/games/phantasia/main.c b/games/phantasia/main.c index ef074181685..6a2d5b197d5 100644 --- a/games/phantasia/main.c +++ b/games/phantasia/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.19 2016/01/06 14:28:09 mestre Exp $ */ +/* $OpenBSD: main.c,v 1.20 2016/01/08 13:40:05 tb Exp $ */ /* $NetBSD: main.c,v 1.3 1995/04/24 12:24:37 cgd Exp $ */ /* @@ -1155,7 +1155,7 @@ genchar(int type) *************************************************************************/ void -playinit() +playinit(void) { initscr(); /* turn on curses */ noecho(); /* do not echo input */ |