forked from osmocom/wireshark
Use OPTSTRING_CAPTURE_COMMON here as well.
Change-Id: If0078797a2e7b14edbd1b64863c4961c9b198168 Reviewed-on: https://code.wireshark.org/review/2494 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
9a50b0f20b
commit
13b5d9b145
|
@ -2161,27 +2161,11 @@ main(int argc, char *argv[])
|
|||
GtkosxApplication *theApp;
|
||||
#endif
|
||||
|
||||
#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_REMOTE
|
||||
#define OPTSTRING_A "A:"
|
||||
#else
|
||||
#define OPTSTRING_A ""
|
||||
#endif
|
||||
#ifdef HAVE_PCAP_CREATE
|
||||
#define OPTSTRING_I "I"
|
||||
#else
|
||||
#define OPTSTRING_I ""
|
||||
#endif
|
||||
|
||||
#define OPTSTRING "a:" OPTSTRING_A "b:" OPTSTRING_B "c:C:Df:g:Hhi:" OPTSTRING_I "jJ:kK:lLm:nN:o:P:pr:R:Ss:t:u:vw:X:y:Y:z:"
|
||||
#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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue