diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-09-06 22:45:44 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-09-06 22:45:44 +0000 |
commit | 429b24827b22a3a7038095cdfc8307442f2f1ec3 (patch) | |
tree | dcf95fe216b9d71bed3bc97b3816fe43a1943743 /gtk | |
parent | ce6eb4391217ef6106b9a467683c213bf2c4cb9d (diff) |
From Vassilii Khachaturov, cleanup of redundant code.
svn path=/trunk/; revision=6202
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gtk/main.c b/gtk/main.c index 16ba041c25..13bbad1e0a 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.260 2002/09/05 18:47:46 jmayer Exp $ + * $Id: main.c,v 1.261 2002/09/06 22:45:42 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1358,25 +1358,7 @@ main(int argc, char *argv[]) /* Read the display filter file. */ read_filter_list(DFILTER_LIST, &df_path, &df_open_errno); - /* 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(EMPTY_FILTER); -#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(""); |