Get rid of a no-longer used preference.
[metze/wireshark/wip.git] / capture_info.c
index 42a9a16ade9a9c4fab79b310eccbb90209b45006..34ec44c1bf440edcaf1950c8b159d6e37c29e98e 100644 (file)
@@ -1,8 +1,6 @@
 /* capture_info.c
  * capture info functions
  *
- * $Id$
- *
  * Wireshark - Network traffic analyzer
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
@@ -32,7 +30,8 @@
 /* XXX - try to remove this later */
 #include <epan/prefs.h>
 /* XXX - try to remove this later */
-#include <epan/filesystem.h>
+
+#include <wiretap/wtap.h>
 
 #include "capture_info.h"
 
@@ -59,6 +58,8 @@
 #include <epan/dissectors/packet-i2c.h>
 #include <epan/dissectors/packet-ax25-kiss.h>
 
+#include <wsutil/filesystem.h>
+
 static void capture_info_packet(
 packet_counts *counts, gint wtap_linktype, const guchar *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header);
 
@@ -218,7 +219,7 @@ gboolean capture_info_new_file(const char *new_filename)
         wtap_close(info_data.wtap);
     }
 
-    info_data.wtap = wtap_open_offline(new_filename, &err, &err_info, FALSE);
+    info_data.wtap = wtap_open_offline(new_filename, WTAP_TYPE_AUTO, &err, &err_info, FALSE);
     if (!info_data.wtap) {
         err_msg = g_strdup_printf(cf_open_error_message(err, err_info, FALSE, WTAP_FILE_TYPE_SUBTYPE_UNKNOWN),
                                   new_filename);