aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-21 13:40:06 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-21 13:40:06 +0000
commit2190d6a213f6d5778e5f462ac453374efd5ac40a (patch)
tree25895c6e2c3c6d4fa1a68e213c4e10710b222c7c /capture.c
parent5eaba9c86669fd7e2db39116d8db1a1935f7c089 (diff)
quit_after_cap should be a gboolean, not an int, and it should be initialized
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10169 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c12
1 files changed, 6 insertions, 6 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 */