summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-08-19 05:10:16 +0000
committerGuy Harris <guy@alum.mit.edu>2008-08-19 05:10:16 +0000
commite8ba2515def69393b68f290284f6e5433a29d0f1 (patch)
treea0531935286f5198f011487cf190972db9571e85 /tshark.c
parentd9416525b674e087193f523c06771926f6bf47ae (diff)
downloadwireshark-e8ba2515def69393b68f290284f6e5433a29d0f1.tar.gz
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.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tshark.c b/tshark.c
index f385fac230..fe2b978bfd 100644
--- a/tshark.c
+++ b/tshark.c
@@ -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"));
+ }
}