diff options
author | dholland <dholland@NetBSD.org> | 2009-06-07 18:30:39 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-06-07 18:30:39 +0000 |
commit | b462731cbc1198051cd39ad2f95b1027e441067d (patch) | |
tree | 4e0259e65c33c841ba5dab75f3dac3a6b5ff2316 /hack/hack.main.c | |
parent | 61a762274b6c7fc952ab3500cf1eca3436206334 (diff) | |
download | bsdgames-darwin-b462731cbc1198051cd39ad2f95b1027e441067d.tar.gz bsdgames-darwin-b462731cbc1198051cd39ad2f95b1027e441067d.tar.zst bsdgames-darwin-b462731cbc1198051cd39ad2f95b1027e441067d.zip |
ANSIfy function declarations. All object file diffs inspected.
Diffstat (limited to 'hack/hack.main.c')
-rw-r--r-- | hack/hack.main.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/hack/hack.main.c b/hack/hack.main.c index 5f62384d..be76bc55 100644 --- a/hack/hack.main.c +++ b/hack/hack.main.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.main.c,v 1.10 2008/01/28 06:55:41 dholland Exp $ */ +/* $NetBSD: hack.main.c,v 1.11 2009/06/07 18:30:39 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.main.c,v 1.10 2008/01/28 06:55:41 dholland Exp $"); +__RCSID("$NetBSD: hack.main.c,v 1.11 2009/06/07 18:30:39 dholland Exp $"); #endif /* not lint */ #include <signal.h> @@ -96,9 +96,7 @@ int main(int, char *[]); static void chdirx(const char *, boolean); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int fd; #ifdef CHDIR @@ -477,8 +475,7 @@ not_recovered: } void -glo(foo) - int foo; +glo(int foo) { /* construct the string xlock.n */ char *tf; @@ -495,7 +492,7 @@ glo(foo) * It may still contain a suffix denoting pl_character. */ void -askname() +askname(void) { int c, ct; printf("\nWho are you? "); @@ -535,9 +532,7 @@ impossible(const char *s, ...) #ifdef CHDIR static void -chdirx(dir, wr) - const char *dir; - boolean wr; +chdirx(const char *dir, boolean wr) { #ifdef SECURE @@ -578,7 +573,7 @@ chdirx(dir, wr) #endif void -stop_occupation() +stop_occupation(void) { if (occupation) { pline("You stop %s.", occtxt); |