diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-07-24 11:43:25 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-07-24 11:43:25 +0100 |
commit | 34fd411f222dd93868ae677dbe8ae82d09f9f199 (patch) | |
tree | db3570f168bb1f4e45d3548c1c8f852a77392ff1 /missing | |
parent | 39f09d68ce7ebe9e229c9bf5209bfc30a8f51064 (diff) | |
download | tcpdump-34fd411f222dd93868ae677dbe8ae82d09f9f199.tar.gz |
Fixup the previous commit for GCC. [skip ci]
Apparently, it does not like pragmas in the middle of a statement:
./missing/getopt_long.c: In function 'getopt_internal':
./missing/getopt_long.c:572:3: error: 'else' without a previous 'if'
Diffstat (limited to 'missing')
-rw-r--r-- | missing/getopt_long.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/missing/getopt_long.c b/missing/getopt_long.c index 5018400e..927028ff 100644 --- a/missing/getopt_long.c +++ b/missing/getopt_long.c @@ -565,11 +565,11 @@ start: ++optind; } else { /* takes (optional) argument */ optarg = NULL; + if (*place) { /* no white space */ DIAG_OFF_CAST_QUAL - if (*place) /* no white space */ optarg = (char *)place; DIAG_ON_CAST_QUAL - else if (oli[1] != ':') { /* arg not optional */ + } else if (oli[1] != ':') { /* arg not optional */ if (++optind >= nargc) { /* no arg */ place = EMSG; if (PRINT_ERROR) |