Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rtadvd make it static const



details:   https://anonhg.NetBSD.org/src/rev/ba92ad2a9e41
branches:  trunk
changeset: 784306:ba92ad2a9e41
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 24 17:44:59 2013 +0000

description:
make it static const

diffstat:

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

diffs (18 lines):

diff -r bf26bc4b9537 -r ba92ad2a9e41 usr.sbin/rtadvd/config.c
--- a/usr.sbin/rtadvd/config.c  Thu Jan 24 17:43:44 2013 +0000
+++ b/usr.sbin/rtadvd/config.c  Thu Jan 24 17:44:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.c,v 1.31 2012/12/14 09:48:31 roy Exp $  */
+/*     $NetBSD: config.c,v 1.32 2013/01/24 17:44:59 christos Exp $     */
 /*     $KAME: config.c,v 1.93 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -1308,7 +1308,7 @@
 static int
 getinet6sysctl(int code)
 {
-       int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, 0 };
+       static const int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, 0 };
        int value;
        size_t size;
 



Home | Main Index | Thread Index | Old Index