aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-20 14:14:02 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-20 21:14:27 +0000
commit9a50b0f20b496e448d3e6e924ea964b6dd2c7fca (patch)
tree04ea0bccfe2801d127232b35aa139b1b59cced52 /ui
parent26bbee3fadc68237801e4ed65b87c97b3cdf3156 (diff)
Define OPTSTRING_CAPTURE_COMMON as nothing if we don't have pcap.
No capturing, no capture options. Change-Id: I0023184b9c358d5876f19a098590f34d641c8649 Reviewed-on: https://code.wireshark.org/review/2493 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/main.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index b0d9fafb7d..4a0a6e85aa 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -499,22 +499,10 @@ int main(int argc, char *argv[])
// XXX Should the remaining code be in WiresharkApplcation::WiresharkApplication?
-#ifdef HAVE_LIBPCAP
-#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
-#define OPTSTRING_B "B:"
-#else
-#define OPTSTRING_B ""
-#endif /* _WIN32 or HAVE_PCAP_CREATE */
-#else /* HAVE_LIBPCAP */
-#define OPTSTRING_B ""
+#ifndef HAVE_LIBPCAP
+#define OPTSTRING_CAPTURE_COMMON ""
#endif /* HAVE_LIBPCAP */
-#ifdef HAVE_PCAP_CREATE
-#define OPTSTRING_I "I"
-#else
-#define OPTSTRING_I ""
-#endif
-
#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'},