Constify nibbletab

This commit is contained in:
matt 2015-06-11 05:22:55 +00:00
parent c21818097f
commit d8c91f91dd
1 changed files with 3 additions and 3 deletions

View File

@ -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
};