summaryrefslogtreecommitdiffstats
path: root/battlestar/misc.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
committerlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
commit61a235f9c8a332df14e8fe40b7b1fcaa98ecc548 (patch)
tree50f20c42070d381297a96acd027002bc10e84095 /battlestar/misc.c
parent098ef9272dbfc3deff7afcd768ea90836e72a163 (diff)
downloadbsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.gz
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.zst
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.zip
KNFify (with indent)
Diffstat (limited to 'battlestar/misc.c')
-rw-r--r--battlestar/misc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/battlestar/misc.c b/battlestar/misc.c
index 2748cf80..dacba04d 100644
--- a/battlestar/misc.c
+++ b/battlestar/misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.5 1997/10/10 11:40:04 lukem Exp $ */
+/* $NetBSD: misc.c,v 1.6 1997/10/11 02:07:27 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,19 +38,19 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: misc.c,v 1.5 1997/10/10 11:40:04 lukem Exp $");
+__RCSID("$NetBSD: misc.c,v 1.6 1997/10/11 02:07:27 lukem Exp $");
#endif
-#endif /* not lint */
+#endif /* not lint */
#include "extern.h"
int
card(array, size) /* for beenthere, injuries */
- char *array;
- int size;
+ char *array;
+ int size;
{
- char *end = array + size;
- int i = 0;
+ char *end = array + size;
+ int i = 0;
while (array < end)
if (*array++)
@@ -62,10 +62,10 @@ int
ucard(array)
unsigned int *array;
{
- int j = 0, n;
+ int j = 0, n;
for (n = 0; n < NUMOFOBJECTS; n++)
if (testbit(array, n))
- j++;
+ j++;
return (j);
}