]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ipfilter: Avoid more null if-then-else blocks
authorCy Schubert <cy@FreeBSD.org>
Wed, 20 Oct 2021 03:11:40 +0000 (20:11 -0700)
committerCy Schubert <cy@FreeBSD.org>
Sat, 4 Dec 2021 14:33:13 +0000 (06:33 -0800)
commit130df64793d7d3c680c0f7177a707867a8a19665
tree2eba79d57d0f4a8bbc6eaaa5b2042d6c827bc88c
parent1ca73c39a54750a4a2f584efd7c57f453bf7dbbe
ipfilter: Avoid more null if-then-else blocks

As in 73db3b64f167, when WITHOUT_INET6 is selected, null if-then-else
blocks are generated because #if statements are incorrectly placed.
Moving the #if statements reduces unnecessary runtime comparisons or
compiler optimizations.

MFC after: 3 days
sys/contrib/ipfilter/netinet/ip_proxy.c