aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.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_sync.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_sync.c')
-rw-r--r--capture_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 489c4f7762..ba819677c1 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -1227,7 +1227,7 @@ sync_pipe_input_cb(gint source, gpointer user_data)
/* the capture child will close the sync_pipe, nothing to do for now */
break;
case SP_DROPS:
- capture_input_drops(capture_opts, atoi(buffer));
+ capture_input_drops(capture_opts, (guint32)strtoul(buffer, NULL, 10));
break;
default:
g_assert_not_reached();