diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-21 13:40:06 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-21 13:40:06 +0000 |
commit | 2190d6a213f6d5778e5f462ac453374efd5ac40a (patch) | |
tree | 25895c6e2c3c6d4fa1a68e213c4e10710b222c7c /capture.c | |
parent | 5eaba9c86669fd7e2db39116d8db1a1935f7c089 (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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 */ |