Skip to content

Commit 476dc88

Browse files
committed
Fix --help option to print some usage strings
LIST_REMOTE_INTERFACES_USAGE is defined or empty depending on HAVE_PCAP_FINDALLDEVS_EX. Don't test HAVE_PCAP_FINDALLDEVS_EX in print_usage(). This also print correctly "[ --lengths ]".
1 parent 170cbc8 commit 476dc88

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tcpdump.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,10 +3354,8 @@ print_usage(FILE *f)
33543354
"\t\t[ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]\n");
33553355
(void)fprintf(f,
33563356
"\t\t[ -i interface ]" IMMEDIATE_MODE_USAGE j_FLAG_USAGE "\n");
3357-
#ifdef HAVE_PCAP_FINDALLDEVS_EX
33583357
(void)fprintf(f,
33593358
"\t\t[ --lengths ]" LIST_REMOTE_INTERFACES_USAGE "\n");
3360-
#endif
33613359
#ifdef USE_LIBSMI
33623360
(void)fprintf(f,
33633361
"\t\t" m_FLAG_USAGE "\n");

0 commit comments

Comments
 (0)