aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capture.c12
-rw-r--r--capture.h4
-rw-r--r--gtk/main.c6
3 files changed, 11 insertions, 11 deletions
diff --git a/capture.c b/capture.c
index 0f0f8317a3..5ef3bdb9c7 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.239 2004/02/21 12:58:41 ulfl Exp $
+ * $Id: capture.c,v 1.240 2004/02/21 13:40:06 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -171,12 +171,12 @@
* Capture options.
*/
capture_options capture_opts;
-int quit_after_cap; /* Makes a "capture only mode". Implies -k */
-gboolean capture_child; /* if this is the child for "-S" */
+gboolean quit_after_cap = FALSE;/* Makes a "capture only mode". Implies -k */
+gboolean capture_child; /* if this is the child for "-S" */
-static int sync_pipe[2]; /* used to sync father */
-enum PIPES { READ, WRITE }; /* Constants 0 and 1 for READ and WRITE */
-static int fork_child = -1; /* If not -1, in parent, process ID of child */
+static int sync_pipe[2]; /* used to sync father */
+enum PIPES { READ, WRITE }; /* Constants 0 and 1 for READ and WRITE */
+static int fork_child = -1; /* If not -1, in parent, process ID of child */
/* Size of buffer to hold decimal representation of
signed/unsigned 64-bit int */
diff --git a/capture.h b/capture.h
index 6f55775b98..7ddb42498c 100644
--- a/capture.h
+++ b/capture.h
@@ -1,7 +1,7 @@
/* capture.h
* Definitions for packet capture windows
*
- * $Id: capture.h,v 1.39 2004/02/21 12:58:41 ulfl Exp $
+ * $Id: capture.h,v 1.40 2004/02/21 13:40:06 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -56,7 +56,7 @@ typedef struct {
extern capture_options capture_opts;
-extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */
+extern gboolean quit_after_cap; /* Makes a "capture only mode". Implies -k */
extern gboolean capture_child; /* if this is the child for "-S" */
/* Open a specified file, or create a temporary file, and start a capture
diff --git a/gtk/main.c b/gtk/main.c
index 9eebdd8032..f0fc60feb6 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.402 2004/02/20 20:36:14 gerald Exp $
+ * $Id: main.c,v 1.403 2004/02/21 13:40:06 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2221,8 +2221,8 @@ main(int argc, char *argv[])
break;
case 'Q': /* Quit after capture (just capture to file) */
#ifdef HAVE_LIBPCAP
- quit_after_cap = 1;
- start_capture = TRUE; /*** -Q implies -k !! ***/
+ quit_after_cap = TRUE;
+ start_capture = TRUE; /*** -Q implies -k !! ***/
#else
capture_option_specified = TRUE;
arg_error = TRUE;