diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-08-19 05:10:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-08-19 05:10:16 +0000 |
commit | e8ba2515def69393b68f290284f6e5433a29d0f1 (patch) | |
tree | a0531935286f5198f011487cf190972db9571e85 /tshark.c | |
parent | d9416525b674e087193f523c06771926f6bf47ae (diff) | |
download | wireshark-e8ba2515def69393b68f290284f6e5433a29d0f1.tar.gz wireshark-e8ba2515def69393b68f290284f6e5433a29d0f1.tar.bz2 wireshark-e8ba2515def69393b68f290284f6e5433a29d0f1.zip |
The packet counts and drop counts reported by libpcap are unsigned.
Clean up indentation a bit.
svn path=/trunk/; revision=26037
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -2075,19 +2075,19 @@ report_counts_siginfo(int signum _U_) /* capture child detected any packet drops? */ void -capture_input_drops(capture_options *capture_opts _U_, int dropped) +capture_input_drops(capture_options *capture_opts _U_, guint32 dropped) { - if (print_packet_counts) { - /* We're printing packet counts to stderr. - Send a newline so that we move to the line after the packet count. */ - fprintf(stderr, "\n"); - } - - if(dropped != 0) { - /* We're printing packet counts to stderr. - Send a newline so that we move to the line after the packet count. */ - fprintf(stderr, "%u packet%s dropped\n", dropped, plurality(dropped, "", "s")); - } + if (print_packet_counts) { + /* We're printing packet counts to stderr. + Send a newline so that we move to the line after the packet count. */ + fprintf(stderr, "\n"); + } + + if (dropped != 0) { + /* We're printing packet counts to stderr. + Send a newline so that we move to the line after the packet count. */ + fprintf(stderr, "%u packet%s dropped\n", dropped, plurality(dropped, "", "s")); + } } |