diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-06 22:45:44 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-06 22:45:44 +0000 |
commit | f1c8997b4e72347ae40b304aff438b6a1559bb2b (patch) | |
tree | dcf95fe216b9d71bed3bc97b3816fe43a1943743 /gtk2 | |
parent | a1c04ba890cbd2f24cbf486184e818999a47b675 (diff) |
From Vassilii Khachaturov, cleanup of redundant code.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6202 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk2')
-rw-r--r-- | gtk2/main.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gtk2/main.c b/gtk2/main.c index d912eb4ee7..53c763485a 100644 --- a/gtk2/main.c +++ b/gtk2/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.7 2002/09/06 13:24:45 sahlberg Exp $ + * $Id: main.c,v 1.8 2002/09/06 22:45:44 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1440,25 +1440,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(""); |