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/sum1.c | |
parent | d413353d829242c97addbbe6aace0c12d53c4772 (diff) |
From NetBSD: merge of 960317
Diffstat (limited to 'usr.bin/cksum/sum1.c')
-rw-r--r-- | usr.bin/cksum/sum1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/cksum/sum1.c b/usr.bin/cksum/sum1.c index a3de50f7518..73850d4829b 100644 --- a/usr.bin/cksum/sum1.c +++ b/usr.bin/cksum/sum1.c @@ -1,4 +1,5 @@ -/* $NetBSD: sum1.c,v 1.4 1995/03/26 05:15:23 glass Exp $ */ +/* $OpenBSD: sum1.c,v 1.2 1996/03/27 19:32:22 niklas Exp $ */ +/* $NetBSD: sum1.c,v 1.5 1996/02/27 21:17:27 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -36,20 +37,23 @@ #ifndef lint #if 0 static char sccsid[] = "@(#)sum1.c 8.1 (Berkeley) 6/6/93"; +static char rcsid[] = "$NetBSD: sum1.c,v 1.5 1996/02/27 21:17:27 cgd Exp $"; #else -static char rcsid[] = "$NetBSD: sum1.c,v 1.4 1995/03/26 05:15:23 glass Exp $"; +static char rcsid[] = "$OpenBSD: sum1.c,v 1.2 1996/03/27 19:32:22 niklas 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; |