Oops; make the table const.

This commit is contained in:
mycroft 1998-03-29 22:36:42 +00:00
parent a6b8b01d96
commit 8f597a8744
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: am7990.c,v 1.42 1998/03/29 22:34:27 mycroft Exp $ */ /* $NetBSD: am7990.c,v 1.43 1998/03/29 22:36:42 mycroft Exp $ */
/*- /*-
* Copyright (c) 1997 The NetBSD Foundation, Inc. * Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -1177,7 +1177,7 @@ am7990_setladrf(ac, af)
struct ether_multi *enm; struct ether_multi *enm;
register u_char *cp; register u_char *cp;
register u_int32_t crc; register u_int32_t crc;
static u_int32_t crctab[] = { static const u_int32_t crctab[] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,

View File

@ -1,4 +1,4 @@
/* $NetBSD: lemac.c,v 1.5 1998/03/29 22:34:28 mycroft Exp $ */ /* $NetBSD: lemac.c,v 1.6 1998/03/29 22:36:42 mycroft Exp $ */
/*- /*-
* Copyright (c) 1994, 1995, 1997 Matt Thomas <matt@3am-software.com> * Copyright (c) 1994, 1995, 1997 Matt Thomas <matt@3am-software.com>
@ -459,7 +459,7 @@ lemac_multicast_op(
int enable) int enable)
{ {
u_int idx, crc = 0xFFFFFFFFUL; u_int idx, crc = 0xFFFFFFFFUL;
static u_int crctab[] = { static const u_int crctab[] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mb86960.c,v 1.23 1998/03/29 22:34:28 mycroft Exp $ */ /* $NetBSD: mb86960.c,v 1.24 1998/03/29 22:36:42 mycroft Exp $ */
/* /*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@ -1559,7 +1559,7 @@ mb86960_getmcaf(ec, af)
struct ether_multi *enm; struct ether_multi *enm;
register u_char *cp; register u_char *cp;
register u_int32_t crc; register u_int32_t crc;
static u_int32_t crctab[] = { static const u_int32_t crctab[] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_de.c,v 1.64 1998/03/29 22:34:28 mycroft Exp $ */ /* $NetBSD: if_de.c,v 1.65 1998/03/29 22:36:43 mycroft Exp $ */
/*- /*-
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
@ -2070,7 +2070,7 @@ tulip_crc32(
size_t datalen) size_t datalen)
{ {
u_int idx, crc = 0xFFFFFFFFUL; u_int idx, crc = 0xFFFFFFFFUL;
static u_int crctab[] = { static const u_int crctab[] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,