diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
commit | 81fbdc5dca4ba4f9673c612f03fede15c8ad3f91 (patch) | |
tree | bb4eddffc1438ca1405dde0867782c5b37066a26 /games/battlestar/parse.c | |
parent | 123f3b7651527e3cd41a6956ecd641c00442b6c7 (diff) |
more ansi; khalek@linuxgamers.net
Diffstat (limited to 'games/battlestar/parse.c')
-rw-r--r-- | games/battlestar/parse.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/games/battlestar/parse.c b/games/battlestar/parse.c index f12aa299aae..399216e24b1 100644 --- a/games/battlestar/parse.c +++ b/games/battlestar/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.12 2003/06/03 03:01:38 millert Exp $ */ +/* $OpenBSD: parse.c,v 1.13 2004/07/10 07:26:22 deraadt Exp $ */ /* $NetBSD: parse.c,v 1.3 1995/03/21 15:07:48 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: parse.c,v 1.12 2003/06/03 03:01:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: parse.c,v 1.13 2004/07/10 07:26:22 deraadt Exp $"; #endif #endif /* not lint */ @@ -51,7 +51,7 @@ static struct wlist *lookup(const char *); struct wlist *hashtab[HASHSIZE]; void -wordinit() +wordinit(void) { struct wlist *w; @@ -60,8 +60,7 @@ wordinit() } static int -hash(s) - const char *s; +hash(const char *s) { int hashval = 0; @@ -74,8 +73,7 @@ hash(s) } static struct wlist * -lookup(s) - const char *s; +lookup(const char *s) { struct wlist *wp; @@ -86,8 +84,7 @@ lookup(s) } static void -install(wp) - struct wlist *wp; +install(struct wlist *wp) { int hashval; @@ -100,7 +97,7 @@ install(wp) } void -parse() +parse(void) { struct wlist *wp; int n; |