aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-19 01:09:05 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-19 01:09:05 +0000
commit2764c7749dede892d0c9b542d1b01b602e18fc8c (patch)
tree94fb6b2de6912788153bc15252821bc9d212d816 /capture_sync.c
parent5146692d1d9991a7ed4da52af96f42061662f9d1 (diff)
Only declare a variable if its going to be used.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37273 f5534014-38df-0310-8fa8-9805f1628bb7
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 */