Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.sbin/ncdcs make crc16_table[] static const



details:   https://anonhg.NetBSD.org/src/rev/e9d76d0e47db
branches:  trunk
changeset: 553666:e9d76d0e47db
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Oct 19 19:30:08 2003 +0000

description:
make crc16_table[] static const

diffstat:

 gnu/usr.sbin/ncdcs/ncdcs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 706ae6cbcc49 -r e9d76d0e47db gnu/usr.sbin/ncdcs/ncdcs.c
--- a/gnu/usr.sbin/ncdcs/ncdcs.c        Sun Oct 19 19:29:50 2003 +0000
+++ b/gnu/usr.sbin/ncdcs/ncdcs.c        Sun Oct 19 19:30:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ncdcs.c,v 1.2 2003/10/19 08:54:13 wiz Exp $ */
+/* $NetBSD: ncdcs.c,v 1.3 2003/10/19 19:30:08 jdolecek Exp $ */
 /*
 ** Program to prepare an ELF file for download to an IBM Network
 ** Station 300 or 1000 running the NCD firmware.
@@ -44,7 +44,7 @@
 
 #endif
 
-unsigned short crc16_table[256] = {
+static const unsigned short crc16_table[256] = {
        0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf,
        0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7,
        0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e,



Home | Main Index | Thread Index | Old Index