summaryrefslogtreecommitdiff
path: root/usr.bin/cksum/sum2.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cksum/sum2.c')
-rw-r--r--usr.bin/cksum/sum2.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/cksum/sum2.c b/usr.bin/cksum/sum2.c
index 9fc63f89485..d07b9740ce6 100644
--- a/usr.bin/cksum/sum2.c
+++ b/usr.bin/cksum/sum2.c
@@ -1,4 +1,5 @@
-/* $NetBSD: sum2.c,v 1.4 1995/03/26 05:15:25 glass Exp $ */
+/* $OpenBSD: sum2.c,v 1.2 1996/03/27 19:32:23 niklas Exp $ */
+/* $NetBSD: sum2.c,v 1.5 1996/02/27 21:17:28 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -36,20 +37,23 @@
#ifndef lint
#if 0
static char sccsid[] = "@(#)sum2.c 8.1 (Berkeley) 6/6/93";
+static char rcsid[] = "$NetBSD: sum2.c,v 1.5 1996/02/27 21:17:28 cgd Exp $";
#else
-static char rcsid[] = "$NetBSD: sum2.c,v 1.4 1995/03/26 05:15:25 glass Exp $";
+static char rcsid[] = "$OpenBSD: sum2.c,v 1.2 1996/03/27 19:32:23 niklas 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];