Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Constify nibbletab
details: https://anonhg.NetBSD.org/src/rev/79bccd306edb
branches: trunk
changeset: 808975:79bccd306edb
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 11 05:22:55 2015 +0000
description:
Constify nibbletab
diffstat:
sys/dev/mii/mii.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f52f9059ff5f -r 79bccd306edb sys/dev/mii/mii.c
--- a/sys/dev/mii/mii.c Thu Jun 11 05:15:49 2015 +0000
+++ b/sys/dev/mii/mii.c Thu Jun 11 05:22:55 2015 +0000
@@ -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 @@
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
};
Home |
Main Index |
Thread Index |
Old Index