diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-05-19 01:09:05 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-05-19 01:09:05 +0000 |
commit | 2baa82a1367d237a689b49b28a3f9da95cf94a4c (patch) | |
tree | 94fb6b2de6912788153bc15252821bc9d212d816 /capture_sync.c | |
parent | 002b0e16edc40dc8ffd416fb8568e50348f7da46 (diff) | |
download | wireshark-2baa82a1367d237a689b49b28a3f9da95cf94a4c.tar.gz wireshark-2baa82a1367d237a689b49b28a3f9da95cf94a4c.tar.bz2 wireshark-2baa82a1367d237a689b49b28a3f9da95cf94a4c.zip |
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.c | 4 |
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 */ |