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 /capture_sync.c | |
parent | d9416525b674e087193f523c06771926f6bf47ae (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.c | 2 |
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(); |