diff options
author | jmc <jmc@NetBSD.org> | 2005-07-01 00:03:36 +0000 |
---|---|---|
committer | jmc <jmc@NetBSD.org> | 2005-07-01 00:03:36 +0000 |
commit | df8ac21ffab206d3f69612627f47e86356f11a4d (patch) | |
tree | 53c2a86c8829e3cccb6403422c6067a262f6e19c /adventure/crc.c | |
parent | f48342524980f49dfc1142b5a48b89ec593d7e11 (diff) | |
download | bsdgames-darwin-df8ac21ffab206d3f69612627f47e86356f11a4d.tar.gz bsdgames-darwin-df8ac21ffab206d3f69612627f47e86356f11a4d.tar.zst bsdgames-darwin-df8ac21ffab206d3f69612627f47e86356f11a4d.zip |
KNF and WARNS=3
Diffstat (limited to 'adventure/crc.c')
-rw-r--r-- | adventure/crc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/adventure/crc.c b/adventure/crc.c index 66504f16..d13bdd42 100644 --- a/adventure/crc.c +++ b/adventure/crc.c @@ -1,4 +1,4 @@ -/* $NetBSD: crc.c,v 1.8 2003/08/07 09:36:50 agc Exp $ */ +/* $NetBSD: crc.c,v 1.9 2005/07/01 00:03:36 jmc Exp $ */ /*- * Copyright (c) 1993 @@ -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 -__RCSID("$NetBSD: crc.c,v 1.8 2003/08/07 09:36:50 agc Exp $"); +__RCSID("$NetBSD: crc.c,v 1.9 2005/07/01 00:03:36 jmc Exp $"); #endif #endif /* not lint */ @@ -115,10 +115,9 @@ crc_start() 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; |