tcpdump: fix -Wunused-but-set-variable warning
authornaddy <naddy@openbsd.org>
Mon, 31 Jan 2022 19:08:29 +0000 (19:08 +0000)
committernaddy <naddy@openbsd.org>
Mon, 31 Jan 2022 19:08:29 +0000 (19:08 +0000)
commit60bba061ba9bc8584d3036ae219cbc84423a7e01
treee60c0fd5983bd4202b8bf12b4e6c8947aed486fa
parent9aba907fd64e24219455dbe9bfff17a9a24711b8
tcpdump: fix -Wunused-but-set-variable warning

All "infile" handling was moved into priv_exec() when tcpdump was
privilege separated.  The options are scanned both in priv_exec()
and in main(), so the empty case needs to remain in the latter.

ok deraadt@
usr.sbin/tcpdump/tcpdump.c