Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat better sync with #ifdef notdef part (in -i f...



details:   https://anonhg.NetBSD.org/src/rev/666036faac0f
branches:  trunk
changeset: 481283:666036faac0f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jan 25 16:07:13 2000 +0000

description:
better sync with #ifdef notdef part (in -i for AF_INET).

diffstat:

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

diffs (40 lines):

diff -r afeb1d362f17 -r 666036faac0f usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Tue Jan 25 16:07:12 2000 +0000
+++ b/usr.bin/netstat/if.c      Tue Jan 25 16:07:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.36 2000/01/25 15:56:55 itojun Exp $   */
+/*     $NetBSD: if.c,v 1.37 2000/01/25 16:07:13 itojun Exp $   */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.36 2000/01/25 15:56:55 itojun Exp $");
+__RCSID("$NetBSD: if.c,v 1.37 2000/01/25 16:07:13 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -203,17 +203,17 @@
                                 */
                                in = inet_makeaddr(ifaddr.in.ia_subnet,
                                        INADDR_ANY);
-                               printf("%-13.13s ", netname(in.s_addr,
-                                   ifaddr.in.ia_subnetmask));
+                               cp = netname(in.s_addr,
+                                       ifaddr.in.ia_subnetmask);
 #else
                                cp = netname(ifaddr.in.ia_subnet,
-                                   ifaddr.in.ia_subnetmask);
+                                       ifaddr.in.ia_subnetmask);
+#endif
                                if (vflag)
                                        n = strlen(cp) < 13 ? 13 : strlen(cp);
                                else
                                        n = 13;
                                printf("%-*.*s ", n, n, cp);
-#endif
                                cp = routename(sin->sin_addr.s_addr);
                                if (vflag)
                                        n = strlen(cp) < 17 ? 17 : strlen(cp);



Home | Main Index | Thread Index | Old Index