Rename the crc() function to ccrc() since that removes a compiler warning
when WARNS=2.
This commit is contained in:
parent
61e4caef25
commit
0d2c6226b0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: cksum.c,v 1.13 2001/03/20 18:46:25 atatat Exp $ */
|
/* $NetBSD: cksum.c,v 1.14 2001/03/20 18:48:10 atatat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
|
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
|
||||||
|
@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
|
||||||
#endif
|
#endif
|
||||||
__RCSID("$NetBSD: cksum.c,v 1.13 2001/03/20 18:46:25 atatat Exp $");
|
__RCSID("$NetBSD: cksum.c,v 1.14 2001/03/20 18:48:10 atatat Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
@ -142,7 +142,7 @@ main(argc, argv)
|
||||||
cfncn = csum1;
|
cfncn = csum1;
|
||||||
pfncn = psum1;
|
pfncn = psum1;
|
||||||
} else {
|
} else {
|
||||||
cfncn = crc;
|
cfncn = ccrc;
|
||||||
pfncn = pcrc;
|
pfncn = pcrc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: crc.c,v 1.8 1997/10/17 11:37:03 lukem Exp $ */
|
/* $NetBSD: crc.c,v 1.9 2001/03/20 18:48:10 atatat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93";
|
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: crc.c,v 1.8 1997/10/17 11:37:03 lukem Exp $");
|
__RCSID("$NetBSD: crc.c,v 1.9 2001/03/20 18:48:10 atatat Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ static const u_int32_t crctab[] = {
|
||||||
u_int32_t crc_total = ~0; /* The crc over a number of files. */
|
u_int32_t crc_total = ~0; /* The crc over a number of files. */
|
||||||
|
|
||||||
int
|
int
|
||||||
crc(fd, cval, clen)
|
ccrc(fd, cval, clen)
|
||||||
register int fd;
|
register int fd;
|
||||||
u_int32_t *cval, *clen;
|
u_int32_t *cval, *clen;
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: extern.h,v 1.7 2001/03/20 18:46:26 atatat Exp $ */
|
/* $NetBSD: extern.h,v 1.8 2001/03/20 18:48:10 atatat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int crc __P((int, u_int32_t *, u_int32_t *));
|
int ccrc __P((int, u_int32_t *, u_int32_t *));
|
||||||
void pcrc __P((char *, u_int32_t, u_int32_t));
|
void pcrc __P((char *, u_int32_t, u_int32_t));
|
||||||
void psum1 __P((char *, u_int32_t, u_int32_t));
|
void psum1 __P((char *, u_int32_t, u_int32_t));
|
||||||
void psum2 __P((char *, u_int32_t, u_int32_t));
|
void psum2 __P((char *, u_int32_t, u_int32_t));
|
||||||
|
|
Loading…
Reference in New Issue