Only declare a variable if its going to be used.
authorMartin Mathieson <martin.r.mathieson@googlemail.com>
Thu, 19 May 2011 01:09:05 +0000 (01:09 -0000)
committerMartin Mathieson <martin.r.mathieson@googlemail.com>
Thu, 19 May 2011 01:09:05 +0000 (01:09 -0000)
svn path=/trunk/; revision=37273

capture_sync.c

index bafe7b43c8c0fd0bac150c1ce1370ff4b31b7557..dcaa6975e4d1d672588025d07f85643a78406089 100644 (file)
@@ -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 */