summaryrefslogtreecommitdiff
path: root/games/adventure/crc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-09 15:59:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-09 15:59:27 +0000
commitc1b01e7eebe1d3206f4204776b105318b0b7b8bc (patch)
tree940af30a6f1a9912227868afece1c2d1b1091dff /games/adventure/crc.c
parentfe859c06cf60db912ac03d66f1dc8d70b91bd189 (diff)
ansi; khalek@linuxgamers.net
Diffstat (limited to 'games/adventure/crc.c')
-rw-r--r--games/adventure/crc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/games/adventure/crc.c b/games/adventure/crc.c
index 475a96559c6..0f5720f5815 100644
--- a/games/adventure/crc.c
+++ b/games/adventure/crc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crc.c,v 1.4 2003/06/03 03:01:37 millert Exp $ */
+/* $OpenBSD: crc.c,v 1.5 2004/07/09 15:59:26 deraadt Exp $ */
/* $NetBSD: crc.c,v 1.2 1995/03/21 12:04:59 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 5/31/93";
static char ORIGINAL_sccsid[] = "@(#)crc.c 5.2 (Berkeley) 4/4/91";
#else
-static char rcsid[] = "$OpenBSD: crc.c,v 1.4 2003/06/03 03:01:37 millert Exp $";
+static char rcsid[] = "$OpenBSD: crc.c,v 1.5 2004/07/09 15:59:26 deraadt Exp $";
#endif
#endif /* not lint */
@@ -111,15 +111,14 @@ unsigned long crcval;
unsigned int step;
void
-crc_start()
+crc_start(void)
{
crcval = step = 0;
}
+/* Process nr bytes at a time; ptr points to them */
unsigned long
-crc(ptr, nr) /* Process nr bytes at a time; ptr points to them */
- const char *ptr;
- int nr;
+crc(const char *ptr, int nr)
{
int i;
const char *p;