Module Name: src Committed By: matt Date: Thu Jun 11 05:22:55 UTC 2015
Modified Files: src/sys/dev/mii: mii.c Log Message: Constify nibbletab To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/dev/mii/mii.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/mii/mii.c diff -u src/sys/dev/mii/mii.c:1.50 src/sys/dev/mii/mii.c:1.51 --- src/sys/dev/mii/mii.c:1.50 Fri Dec 4 22:37:35 2009 +++ src/sys/dev/mii/mii.c Thu Jun 11 05:22:55 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: mii.c,v 1.50 2009/12/04 22:37:35 dyoung Exp $ */ +/* $NetBSD: mii.c,v 1.51 2015/06/11 05:22:55 matt Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mii.c,v 1.50 2009/12/04 22:37:35 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mii.c,v 1.51 2015/06/11 05:22:55 matt Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -266,7 +266,7 @@ mii_down(struct mii_data *mii) static unsigned char bitreverse(unsigned char x) { - static unsigned char nibbletab[16] = { + static const unsigned char nibbletab[16] = { 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 };