-/* $NetBSD: misc.c,v 1.5 1997/10/10 11:40:04 lukem Exp $ */
+/* $NetBSD: misc.c,v 1.7 1999/02/10 01:36:50 hubertf Exp $ */
/*
* Copyright (c) 1983, 1993
#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.7 1999/02/10 01:36:50 hubertf Exp $");
#endif
-#endif /* not lint */
+#endif /* not lint */
#include "extern.h"
int
card(array, size) /* for beenthere, injuries */
- char *array;
- int size;
+ const char *array;
+ int size;
{
- char *end = array + size;
- int i = 0;
+ const char *end = array + size;
+ int i = 0;
while (array < end)
if (*array++)
int
ucard(array)
- unsigned int *array;
+ const 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);
}