Include <ctype.h> for "isspace()".
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 6 Feb 2005 22:18:15 +0000 (22:18 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 6 Feb 2005 22:18:15 +0000 (22:18 +0000)
#ifdef a variable used only if _WIN32 is defined.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13324 f5534014-38df-0310-8fa8-9805f1628bb7

capture.c

index 38242fa2bbd505eee5a76b552827509875b4aced..38cf2092a1e3e74ff655959e3f4c058eb70d4706 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -34,6 +34,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <ctype.h>
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
@@ -259,8 +260,9 @@ get_ring_arguments(capture_options *capture_opts, const char *arg)
 void
 capture_opt_add(capture_options *capture_opts, int opt, const char *optarg, gboolean *start_capture)
 {
+#ifdef _WIN32
     int i;
-
+#endif
 
     switch(opt) {
     case 'a':        /* autostop criteria */