diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-05-30 02:20:55 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-05-30 02:20:55 +0000 |
commit | 3edf440f3da4a184bf108a4e25258d32b1305b9a (patch) | |
tree | 53e6f04e1446624a9f0467d6ccd28a1aacea24fa /sys/lib/libz/crc32.c | |
parent | ff59d907975e66d4d2b18d0903f3dfed8a7fdb5d (diff) |
more const here and there; so would benefit everyone
Diffstat (limited to 'sys/lib/libz/crc32.c')
-rw-r--r-- | sys/lib/libz/crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libz/crc32.c b/sys/lib/libz/crc32.c index 88a8cc86dca..fb2be41b985 100644 --- a/sys/lib/libz/crc32.c +++ b/sys/lib/libz/crc32.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crc32.c,v 1.3 1997/11/07 15:57:46 niklas Exp $ */ +/* $OpenBSD: crc32.c,v 1.4 1998/05/30 02:20:50 mickey Exp $ */ /* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-1996 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h @@ -47,7 +47,7 @@ local void make_crc_table() int n, k; uLong poly; /* polynomial exclusive-or pattern */ /* terms of polynomial defining this crc (except x^32): */ - static Byte p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; + static const Byte p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; /* make exclusive-or pattern from polynomial (0xedb88320L) */ poly = 0L; |