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.rumors.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.rumors.c')
-rw-r--r-- | hack/hack.rumors.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/hack/hack.rumors.c b/hack/hack.rumors.c index 383bba9d..0a0077c2 100644 --- a/hack/hack.rumors.c +++ b/hack/hack.rumors.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.rumors.c,v 1.5 2003/04/02 18:36:39 jsm Exp $ */ +/* $NetBSD: hack.rumors.c,v 1.6 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.rumors.c,v 1.5 2003/04/02 18:36:39 jsm Exp $"); +__RCSID("$NetBSD: hack.rumors.c,v 1.6 2009/06/07 18:30:39 dholland Exp $"); #endif /* not lint */ #include "hack.h" /* for RUMORFILE and BSD (strchr) */ @@ -74,8 +74,7 @@ int n_used_rumors = -1; char *usedbits; void -init_rumors(rumf) - FILE *rumf; +init_rumors(FILE *rumf) { int i; n_used_rumors = 0; @@ -89,8 +88,7 @@ init_rumors(rumf) } int -skipline(rumf) - FILE *rumf; +skipline(FILE *rumf) { char line[COLNO]; while (1) { @@ -102,8 +100,7 @@ skipline(rumf) } void -outline(rumf) - FILE *rumf; +outline(FILE *rumf) { char line[COLNO]; char *ep; @@ -116,7 +113,7 @@ outline(rumf) } void -outrumor() +outrumor(void) { int rn, i; FILE *rumf; @@ -143,8 +140,7 @@ none: } int -used(i) - int i; +used(int i) { return (usedbits[i / CHARSZ] & (1 << (i % CHARSZ))); } |