what's the point of having prototypes if they're not actually _used_

in the appropriate places?  include extern.h in these files, and fix
up the bugs that its inclusion uncovered.
This commit is contained in:
cgd 1996-02-27 21:17:25 +00:00
parent 5688147b3a
commit a0a5237453
3 changed files with 16 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $ */
/* $NetBSD: crc.c,v 1.6 1996/02/27 21:17:25 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -40,13 +40,15 @@
#if 0
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93";
#else
static char rcsid[] = "$NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $";
static char rcsid[] = "$NetBSD: crc.c,v 1.6 1996/02/27 21:17:25 cgd Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <unistd.h>
#include "extern.h"
static u_int32_t crctab[] = {
0x0,
0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,

View File

@ -1,4 +1,4 @@
/* $NetBSD: sum1.c,v 1.4 1995/03/26 05:15:23 glass Exp $ */
/* $NetBSD: sum1.c,v 1.5 1996/02/27 21:17:27 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -37,19 +37,21 @@
#if 0
static char sccsid[] = "@(#)sum1.c 8.1 (Berkeley) 6/6/93";
#else
static char rcsid[] = "$NetBSD: sum1.c,v 1.4 1995/03/26 05:15:23 glass Exp $";
static char rcsid[] = "$NetBSD: sum1.c,v 1.5 1996/02/27 21:17:27 cgd Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <unistd.h>
#include "extern.h"
int
csum1(fd, cval, clen)
register int fd;
u_long *cval, *clen;
u_int32_t *cval, *clen;
{
register u_long total;
register u_int32_t total;
register int nr;
register u_int crc;
register u_char *p;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sum2.c,v 1.4 1995/03/26 05:15:25 glass Exp $ */
/* $NetBSD: sum2.c,v 1.5 1996/02/27 21:17:28 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -37,19 +37,21 @@
#if 0
static char sccsid[] = "@(#)sum2.c 8.1 (Berkeley) 6/6/93";
#else
static char rcsid[] = "$NetBSD: sum2.c,v 1.4 1995/03/26 05:15:25 glass Exp $";
static char rcsid[] = "$NetBSD: sum2.c,v 1.5 1996/02/27 21:17:28 cgd Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <unistd.h>
#include "extern.h"
int
csum2(fd, cval, clen)
register int fd;
u_long *cval, *clen;
u_int32_t *cval, *clen;
{
register u_long crc, total;
register u_int32_t crc, total;
register int nr;
register u_char *p;
u_char buf[8192];