/* capture_info.c
* capture info functions
*
- * $Id$
- *
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
/* 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"
#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);
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);