X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/61a235f9c8a332df14e8fe40b7b1fcaa98ecc548..4fa17c6f9afc7c76d0350d5d9e5996391aa18137:/battlestar/misc.c diff --git a/battlestar/misc.c b/battlestar/misc.c index dacba04d..f83252d8 100644 --- a/battlestar/misc.c +++ b/battlestar/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.6 1997/10/11 02:07:27 lukem Exp $ */ +/* $NetBSD: misc.c,v 1.9 2005/07/01 06:04:54 jmc Exp $ */ /* * Copyright (c) 1983, 1993 @@ -12,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,18 +34,17 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: misc.c,v 1.6 1997/10/11 02:07:27 lukem Exp $"); +__RCSID("$NetBSD: misc.c,v 1.9 2005/07/01 06:04:54 jmc Exp $"); #endif #endif /* not lint */ #include "extern.h" +/* for beenthere, injuries */ int -card(array, size) /* for beenthere, injuries */ - char *array; - int size; +card(const char *array, int size) { - char *end = array + size; + const char *end = array + size; int i = 0; while (array < end) @@ -59,8 +54,7 @@ card(array, size) /* for beenthere, injuries */ } int -ucard(array) - unsigned int *array; +ucard(const unsigned int *array) { int j = 0, n;