aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2011-05-19 01:09:05 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2011-05-19 01:09:05 +0000
commit2baa82a1367d237a689b49b28a3f9da95cf94a4c (patch)
tree94fb6b2de6912788153bc15252821bc9d212d816 /capture_sync.c
parent002b0e16edc40dc8ffd416fb8568e50348f7da46 (diff)
Only declare a variable if its going to be used.
svn path=/trunk/; revision=37273
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index bafe7b43c8..dcaa6975e4 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -334,7 +334,11 @@ sync_pipe_start(capture_options *capture_opts) {
#ifdef HAVE_PCAP_SETSAMPLING
char ssampling[ARGV_NUMBER_LEN];
#endif
+
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
char buffer_size[ARGV_NUMBER_LEN];
+#endif
+
#ifdef _WIN32
HANDLE sync_pipe_read; /* pipe used to send messages from child to parent */
HANDLE sync_pipe_write; /* pipe used to send messages from child to parent */