summaryrefslogtreecommitdiffstats
path: root/adventure/crc.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 11:59:26 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 11:59:26 +0000
commitccdde728ae3782113b7cc37dfd324b95fd647b80 (patch)
treefe3bf5c41a2a3f051023572550f5244503b00d5c /adventure/crc.c
parent86e48c9a3b89780b5b63ae73636bda9f6c35206d (diff)
downloadbsdgames-darwin-ccdde728ae3782113b7cc37dfd324b95fd647b80.tar.gz
bsdgames-darwin-ccdde728ae3782113b7cc37dfd324b95fd647b80.tar.zst
bsdgames-darwin-ccdde728ae3782113b7cc37dfd324b95fd647b80.zip
deprecate register, fixup .Nm usage
Diffstat (limited to 'adventure/crc.c')
-rw-r--r--adventure/crc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/adventure/crc.c b/adventure/crc.c
index 718907a8..e5e87370 100644
--- a/adventure/crc.c
+++ b/adventure/crc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crc.c,v 1.3 1997/08/11 14:06:11 christos Exp $ */
+/* $NetBSD: crc.c,v 1.4 1997/10/10 11:59:36 lukem Exp $ */
/*-
* Copyright (c) 1993
@@ -42,7 +42,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
-__RCSID("$NetBSD: crc.c,v 1.3 1997/08/11 14:06:11 christos Exp $");
+__RCSID("$NetBSD: crc.c,v 1.4 1997/10/10 11:59:36 lukem Exp $");
#endif
#endif /* not lint */
@@ -120,12 +120,13 @@ crc_start()
crcval = step = 0;
}
-unsigned long crc(ptr, nr) /* Process nr bytes at a time; ptr points to them */
-char *ptr;
-int nr;
+unsigned long
+crc(ptr, nr) /* Process nr bytes at a time; ptr points to them */
+ char *ptr;
+ int nr;
{
- register int i;
- register char *p;
+ int i;
+ char *p;
while (nr > 0)
for (p = ptr; nr--; ++p)