]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up the code a bit.
authorGuy Harris <[email protected]>
Sat, 15 Sep 2018 00:48:45 +0000 (17:48 -0700)
committerGuy Harris <[email protected]>
Sat, 15 Sep 2018 00:48:45 +0000 (17:48 -0700)
commita5eca2cbbfa991c0ae26d0b039bf303fa92734ac
treec2c3b5e7aecd821c1b19bf1d094d73489816b6a2
parent3ad93074c1f679f6b2791f97ce301459a5ded35a
Clean up the code a bit.

This eliminates a warning from MSVC, and makes the flow a little
clearer.

(Yes, it duplicates some code, but compilers have been pretty good at
merging common code sequences, so it might just turn it into the
equivalent of

if (optopt == (int)':')
goto label;
oli = strchr(ostr, optopt);
if (!oli) {
label:
/*
 * Unknown option character.
 */
if (!*place)
++optind;

...
}

although it does mean that the same C code exists in two places.)
missing/getopt_long.c