Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rtadvd fix previous.



details:   https://anonhg.NetBSD.org/src/rev/3cc3eb32dcbd
branches:  trunk
changeset: 784314:3cc3eb32dcbd
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 24 19:55:28 2013 +0000

description:
fix previous.

diffstat:

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

diffs (22 lines):

diff -r 9597790f0c5b -r 3cc3eb32dcbd usr.sbin/rtadvd/config.c
--- a/usr.sbin/rtadvd/config.c  Thu Jan 24 19:24:56 2013 +0000
+++ b/usr.sbin/rtadvd/config.c  Thu Jan 24 19:55:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.c,v 1.32 2013/01/24 17:44:59 christos Exp $     */
+/*     $NetBSD: config.c,v 1.33 2013/01/24 19:55:28 christos Exp $     */
 /*     $KAME: config.c,v 1.93 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -1308,11 +1308,10 @@
 static int
 getinet6sysctl(int code)
 {
-       static const int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, 0 };
+       const int mib[] = { CTL_NET, PF_INET6, IPPROTO_IPV6, code };
        int value;
        size_t size;
 
-       mib[3] = code;
        size = sizeof(value);
        if (sysctl(mib, __arraycount(mib), &value, &size, NULL, 0)
            < 0) {



Home | Main Index | Thread Index | Old Index