From 2baa82a1367d237a689b49b28a3f9da95cf94a4c Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Thu, 19 May 2011 01:09:05 +0000 Subject: Only declare a variable if its going to be used. svn path=/trunk/; revision=37273 --- capture_sync.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'capture_sync.c') 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 */ -- cgit v1.2.3