diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-01-06 21:39:26 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-01-08 05:50:15 +0000 |
commit | e80b40adbe823be084fb49cd84336939916120bb (patch) | |
tree | d712734b953f7df6f1f79519c7abc73029152e1d /tshark.c | |
parent | 6f93baced0fba7d07425e14ea698f4607964c6ed (diff) |
extcap: remove conditional compilation.
Change-Id: Ia54bba388755cf27a343fe6d69d244bf1ab897f9
Reviewed-on: https://code.wireshark.org/review/25186
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -119,9 +119,7 @@ #include <wsutil/str_util.h> #include <wsutil/utf8_entities.h> -#ifdef HAVE_EXTCAP #include "extcap.h" -#endif #ifdef HAVE_PLUGINS #include <wsutil/plugins.h> @@ -562,10 +560,8 @@ about_folders(void) { const char *constpath; char *path; -#if defined(HAVE_LIBSMI) || defined(HAVE_GEOIP) || defined(HAVE_EXTCAP) gint i; gchar **resultArray; -#endif /* "file open" */ @@ -612,7 +608,6 @@ about_folders(void) printf("%-21s\t%s\n", "Global Lua Plugins:", get_plugins_dir()); #endif -#ifdef HAVE_EXTCAP /* Extcap */ constpath = get_extcap_dir(); @@ -621,7 +616,6 @@ about_folders(void) printf("%-21s\t%s\n", "Extcap path:", g_strstrip(resultArray[i])); g_strfreev(resultArray); -#endif #ifdef HAVE_GEOIP /* GeoIP */ @@ -919,9 +913,7 @@ main(int argc, char *argv[]) #ifdef HAVE_PLUGINS register_all_plugin_tap_listeners(); #endif -#ifdef HAVE_EXTCAP extcap_register_preferences(); -#endif /* Register all tap listeners. */ for (tap_reg_t *t = tap_reg_listener; t->cb_func != NULL; t++) { t->cb_func(); @@ -1367,9 +1359,7 @@ main(int argc, char *argv[]) * $ ./tools/valgrind-wireshark -n * much more useful. */ epan_cleanup(); -#ifdef HAVE_EXTCAP extcap_cleanup(); -#endif exit_status = EXIT_SUCCESS; goto clean_exit; case 'O': /* Only output these protocols */ @@ -1868,9 +1858,7 @@ main(int argc, char *argv[]) cmdarg_err("%s", err_msg); g_free(err_msg); epan_cleanup(); -#ifdef HAVE_EXTCAP extcap_cleanup(); -#endif #ifdef HAVE_PCAP_OPEN_DEAD { pcap_t *pc; @@ -1898,9 +1886,7 @@ main(int argc, char *argv[]) cmdarg_err("%s", err_msg); g_free(err_msg); epan_cleanup(); -#ifdef HAVE_EXTCAP extcap_cleanup(); -#endif #ifdef HAVE_PCAP_OPEN_DEAD { pcap_t *pc; @@ -2020,9 +2006,7 @@ main(int argc, char *argv[]) */ if (cf_open(&cfile, cf_name, in_file_type, FALSE, &err) != CF_OK) { epan_cleanup(); -#ifdef HAVE_EXTCAP extcap_cleanup(); -#endif exit_status = INVALID_FILE; goto clean_exit; } @@ -2199,9 +2183,7 @@ main(int argc, char *argv[]) funnel_dump_all_text_windows(); epan_free(cfile.epan); epan_cleanup(); -#ifdef HAVE_EXTCAP extcap_cleanup(); -#endif output_fields_free(output_fields); output_fields = NULL; |