aboutsummaryrefslogtreecommitdiffstats
path: root/capture.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 /capture.c
parentd9416525b674e087193f523c06771926f6bf47ae (diff)
The packet counts and drop counts reported by libpcap are unsigned.
Clean up indentation a bit. svn path=/trunk/; revision=26037
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture.c b/capture.c
index 14dab65731..adc6ffdf50 100644
--- a/capture.c
+++ b/capture.c
@@ -446,9 +446,9 @@ capture_input_new_packets(capture_options *capture_opts, int to_read)
/* Capture child told us how many dropped packets it counted.
*/
void
-capture_input_drops(capture_options *capture_opts, int dropped)
+capture_input_drops(capture_options *capture_opts, guint32 dropped)
{
- g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_INFO, "%d packet%s dropped", dropped, plurality(dropped, "", "s"));
+ g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_INFO, "%u packet%s dropped", dropped, plurality(dropped, "", "s"));
g_assert(capture_opts->state == CAPTURE_RUNNING);