Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat make bpf stats #ifndef SMALL,



details:   https://anonhg.NetBSD.org/src/rev/f8e4c112205b
branches:  trunk
changeset: 584371:f8e4c112205b
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Sep 14 15:35:26 2005 +0000

description:
make bpf stats #ifndef SMALL,
fixes build of x_netstat

diffstat:

 usr.bin/netstat/main.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d4b0a6392d6d -r f8e4c112205b usr.bin/netstat/main.c
--- a/usr.bin/netstat/main.c    Wed Sep 14 15:31:18 2005 +0000
+++ b/usr.bin/netstat/main.c    Wed Sep 14 15:35:26 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.50 2005/09/02 22:23:13 rpaulo Exp $ */
+/*     $NetBSD: main.c,v 1.51 2005/09/14 15:35:26 drochner Exp $       */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.4 (Berkeley) 3/1/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.50 2005/09/02 22:23:13 rpaulo Exp $");
+__RCSID("$NetBSD: main.c,v 1.51 2005/09/14 15:35:26 drochner Exp $");
 #endif
 #endif /* not lint */
 
@@ -533,6 +533,7 @@
        if (nlistf == NULL && memf == NULL)
                (void)setgid(getgid());
 
+#ifndef SMALL
        if (Bflag) {
                if (sflag)
                        bpf_stats();
@@ -540,6 +541,7 @@
                        bpf_dump(interface);
                exit(0);
        }
+#endif
 
        if (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0) {
                if (nlistf)



Home | Main Index | Thread Index | Old Index