Don't require --verbose for pcap_stats.
authorEmil Mikulic <emikulic@gmail.com>
Wed, 10 Dec 2008 10:59:50 +0000 (21:59 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Fri, 24 Apr 2009 11:40:23 +0000 (21:40 +1000)
How embarassing.  And it didn't get picked up during testing.

Noticed by: Dennis Jansen

cap.c

diff --git a/cap.c b/cap.c
index 1fc8def..b39b1c4 100644 (file)
--- a/cap.c
+++ b/cap.c
@@ -201,8 +201,6 @@ cap_stats_update(void)
 {
    struct pcap_stat ps;
 
-   if (!want_verbose) return;
-
    if (pcap_stats(pcap, &ps) != 0) {
       warnx("pcap_stats(): %s", pcap_geterr(pcap));
       return;