aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-06 22:45:44 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-06 22:45:44 +0000
commit429b24827b22a3a7038095cdfc8307442f2f1ec3 (patch)
treedcf95fe216b9d71bed3bc97b3816fe43a1943743 /tethereal.c
parentce6eb4391217ef6106b9a467683c213bf2c4cb9d (diff)
From Vassilii Khachaturov, cleanup of redundant code.
svn path=/trunk/; revision=6202
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/tethereal.c b/tethereal.c
index 1ea111101f..bfcb03e14c 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.156 2002/09/05 09:27:50 sahlberg Exp $
+ * $Id: tethereal.c,v 1.157 2002/09/06 22:45:40 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -390,25 +390,7 @@ main(int argc, char *argv[])
load_wpcap();
#endif
- /* Initialize the capture file struct */
- cfile.plist = NULL;
- cfile.plist_end = NULL;
- cfile.wth = NULL;
- cfile.filename = NULL;
- cfile.user_saved = FALSE;
- cfile.is_tempfile = FALSE;
- cfile.rfcode = NULL;
- cfile.dfilter = NULL;
- cfile.dfcode = NULL;
-#ifdef HAVE_LIBPCAP
- cfile.cfilter = g_strdup("");
-#endif
- cfile.iface = NULL;
- cfile.save_file = NULL;
- cfile.save_file_fd = -1;
- cfile.has_snap = FALSE;
- cfile.snap = WTAP_MAX_PACKET_SIZE;
- cfile.count = 0;
+ init_cap_file(&cfile);
/* Assemble the compile-time options */
comp_info_str = g_string_new("");