summaryrefslogtreecommitdiffstats
path: root/adventure/crc.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-09-13 00:07:24 +0000
committerhubertf <hubertf@NetBSD.org>1998-09-13 00:07:24 +0000
commitc352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb (patch)
tree6851ebb9da45b6488dcea64b004f231a9eb2caee /adventure/crc.c
parent36d0ac95346e7a22f32d5613230227fcfd74fa51 (diff)
downloadbsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.tar.gz
bsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.tar.zst
bsdgames-darwin-c352f3e872a5c707bab0c5de75c1a6e5c4ca9cbb.zip
constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'adventure/crc.c')
-rw-r--r--adventure/crc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/adventure/crc.c b/adventure/crc.c
index 768882d9..b80b1263 100644
--- a/adventure/crc.c
+++ b/adventure/crc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crc.c,v 1.5 1997/10/11 01:53:21 lukem Exp $ */
+/* $NetBSD: crc.c,v 1.6 1998/09/13 00:07:24 hubertf 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.5 1997/10/11 01:53:21 lukem Exp $");
+__RCSID("$NetBSD: crc.c,v 1.6 1998/09/13 00:07:24 hubertf Exp $");
#endif
#endif /* not lint */
@@ -121,11 +121,11 @@ crc_start()
unsigned long
crc(ptr, nr) /* Process nr bytes at a time; ptr points to them */
- char *ptr;
+ const char *ptr;
int nr;
{
int i;
- char *p;
+ const char *p;
while (nr > 0)
for (p = ptr; nr--; ++p) {