summaryrefslogtreecommitdiffstats
path: root/battlestar/misc.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 11:39:08 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 11:39:08 +0000
commitb4bb83fd34ab5386afa1b8af8e0956ff7953d0e0 (patch)
tree5cd3c69d8e6d56c42128666f35ceed56746ed1d2 /battlestar/misc.c
parent7016350ffcce57245468046bd3e36559e2684dca (diff)
downloadbsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.gz
bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.tar.zst
bsdgames-darwin-b4bb83fd34ab5386afa1b8af8e0956ff7953d0e0.zip
WARNSify
Diffstat (limited to 'battlestar/misc.c')
-rw-r--r--battlestar/misc.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/battlestar/misc.c b/battlestar/misc.c
index b0025758..2748cf80 100644
--- a/battlestar/misc.c
+++ b/battlestar/misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.4 1997/01/07 11:56:46 tls Exp $ */
+/* $NetBSD: misc.c,v 1.5 1997/10/10 11:40:04 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -33,22 +33,24 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$NetBSD: misc.c,v 1.4 1997/01/07 11:56:46 tls Exp $";
+__RCSID("$NetBSD: misc.c,v 1.5 1997/10/10 11:40:04 lukem Exp $");
#endif
#endif /* not lint */
#include "extern.h"
+int
card(array, size) /* for beenthere, injuries */
- register char *array;
+ char *array;
int size;
{
- register char *end = array + size;
- register int i = 0;
+ char *end = array + size;
+ int i = 0;
while (array < end)
if (*array++)
@@ -56,10 +58,11 @@ card(array, size) /* for beenthere, injuries */
return (i);
}
+int
ucard(array)
- register unsigned *array;
+ unsigned int *array;
{
- register int j = 0, n;
+ int j = 0, n;
for (n = 0; n < NUMOFOBJECTS; n++)
if (testbit(array, n))