aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-11-26 20:59:15 +0000
committerGuy Harris <gharris@sonic.net>2021-11-27 08:41:01 +0000
commitc15f2aadc1aef3f4855c682ff7f686d5f63088cb (patch)
treef0042090e6a0f7374e36b70da83ce3009dffd071 /dftest.c
parentba85d8ef4d657f3f852eb8ee7e0cc6c2141d086e (diff)
epan: Initialize wiretap
Clients of libwireshark should not be required to initialize explicitly wiretap, if they don't use it themselves.
Diffstat (limited to 'dftest.c')
-rw-r--r--dftest.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/dftest.c b/dftest.c
index 1c7ba933b5..e9f1df6a23 100644
--- a/dftest.c
+++ b/dftest.c
@@ -31,8 +31,6 @@
#include <wsutil/report_message.h>
#include <wsutil/wslog.h>
-#include <wiretap/wtap.h>
-
#include "ui/util.h"
#include "ui/cmdarg_err.h"
#include "ui/failure_message.h"
@@ -89,13 +87,6 @@ main(int argc, char **argv)
timestamp_set_type(TS_RELATIVE);
timestamp_set_seconds_type(TS_SECONDS_DEFAULT);
- /*
- * Libwiretap must be initialized before libwireshark is, so that
- * dissection-time handlers for file-type-dependent blocks can
- * register using the file type/subtype value for the file type.
- */
- wtap_init(TRUE);
-
/* Register all dissectors; we must do this before checking for the
"-g" flag, as the "-g" flag dumps a list of fields registered
by the dissectors, and we must do it before we read the preferences,