diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-27 19:33:22 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-27 19:33:22 +0000 |
commit | b4d055c56d56b705a9874806044897b6f933a892 (patch) | |
tree | ea6944e4424f24dce67f9a7422a498a2e3e97486 /usr.bin/cksum/sum2.c | |
parent | d413353d829242c97addbbe6aace0c12d53c4772 (diff) |
From NetBSD: merge of 960317
Diffstat (limited to 'usr.bin/cksum/sum2.c')
-rw-r--r-- | usr.bin/cksum/sum2.c | 12 |
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]; |