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/crc.c | |
parent | d413353d829242c97addbbe6aace0c12d53c4772 (diff) |
From NetBSD: merge of 960317
Diffstat (limited to 'usr.bin/cksum/crc.c')
-rw-r--r-- | usr.bin/cksum/crc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/cksum/crc.c b/usr.bin/cksum/crc.c index 64f545abe9d..7301e342f50 100644 --- a/usr.bin/cksum/crc.c +++ b/usr.bin/cksum/crc.c @@ -1,4 +1,5 @@ -/* $NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $ */ +/* $OpenBSD: crc.c,v 1.2 1996/03/27 19:32:21 niklas Exp $ */ +/* $NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -39,15 +40,18 @@ #ifndef lint #if 0 static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; +static char rcsid[] = "$NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $"; #else -static char rcsid[] = "$NetBSD: crc.c,v 1.5 1995/03/26 05:15:18 glass Exp $"; +static char rcsid[] = "$OpenBSD: crc.c,v 1.2 1996/03/27 19:32:21 niklas Exp $"; #endif #endif /* not lint */ #include <sys/types.h> #include <unistd.h> -static u_int32_t crctab[] = { +#include "extern.h" + +static const u_int32_t crctab[] = { 0x0, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, |