Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat protecting sockaddr_in6 with -DINET6



details:   https://anonhg.NetBSD.org/src/rev/95a2adaa2ccf
branches:  trunk
changeset: 747703:95a2adaa2ccf
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Sep 27 18:19:18 2009 +0000

description:
protecting sockaddr_in6 with -DINET6

diffstat:

 usr.bin/netstat/if.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 812f3b729ec4 -r 95a2adaa2ccf usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Sun Sep 27 18:08:24 2009 +0000
+++ b/usr.bin/netstat/if.c      Sun Sep 27 18:19:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.66 2009/09/13 21:46:23 pgoyette Exp $ */
+/*     $NetBSD: if.c,v 1.67 2009/09/27 18:19:18 plunky Exp $   */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.66 2009/09/13 21:46:23 pgoyette Exp $");
+__RCSID("$NetBSD: if.c,v 1.67 2009/09/27 18:19:18 plunky Exp $");
 #endif
 #endif /* not lint */
 
@@ -333,10 +333,10 @@
        char hbuf[NI_MAXHOST];          /* for getnameinfo() */
 #ifdef INET6
        const int niflag = NI_NUMERICHOST;
+       struct sockaddr_in6 *sin6, *netmask6;
 #endif
        in_addr_t netmask;
        struct sockaddr_in *sin;
-       struct sockaddr_in6 *sin6, *netmask6;
        char *cp;
        int n, m;
 



Home | Main Index | Thread Index | Old Index