summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tshark.c5
-rw-r--r--ui/gtk/main.c4
-rw-r--r--ui/qt/main.cpp5
3 files changed, 0 insertions, 14 deletions
diff --git a/tshark.c b/tshark.c
index de819fdf9a..2007384cdc 100644
--- a/tshark.c
+++ b/tshark.c
@@ -915,11 +915,6 @@ show_version(GString *comp_info_str, GString *runtime_info_str)
runtime_info_str->str);
}
-#ifndef HAVE_LIBPCAP
-#define LONGOPT_CAPTURE_COMMON
-#define OPTSTRING_CAPTURE_COMMON ""
-#endif /* HAVE_LIBPCAP */
-
int
main(int argc, char *argv[])
{
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 8c9215ff45..0e05e40256 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -2161,10 +2161,6 @@ main(int argc, char *argv[])
GtkosxApplication *theApp;
#endif
-#ifndef HAVE_LIBPCAP
-#define OPTSTRING_CAPTURE_COMMON ""
-#endif /* HAVE_LIBPCAP */
-
#define OPTSTRING OPTSTRING_CAPTURE_COMMON "C:g:Hh" "jJ:kK:lm:nN:o:P:r:R:St:u:vw:X:Y:z:"
static const char optstring[] = OPTSTRING;
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index 68a385dbc7..f061f77063 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -499,11 +499,6 @@ int main(int argc, char *argv[])
// XXX Should the remaining code be in WiresharkApplcation::WiresharkApplication?
-#ifndef HAVE_LIBPCAP
-#define LONGOPT_CAPTURE_COMMON
-#define OPTSTRING_CAPTURE_COMMON ""
-#endif /* HAVE_LIBPCAP */
-
#define OPTSTRING OPTSTRING_CAPTURE_COMMON "C:g:Hh" "jJ:kK:lm:nN:o:P:Qr:R:St:u:vw:X:z:"
static const struct option long_options[] = {
{(char *)"help", no_argument, NULL, 'h'},