]> The Tcpdump Group git mirrors - libpcap/commit
Lose the no-op dir qualifier in gen_gateway() and gen_proto(). 1491/head
authorDenis Ovsienko <[email protected]>
Fri, 21 Mar 2025 22:13:41 +0000 (22:13 +0000)
committerDenis Ovsienko <[email protected]>
Sun, 23 Mar 2025 20:53:32 +0000 (20:53 +0000)
commit98232604d3a3e79e91797fb53eda5d6d12a3fcf2
tree32a82ba3d6f7bbe0c5cb14fc10a522779474106d
parentc86dd4eff62e61f2f96bdb603a49aafcdc5893df
Lose the no-op dir qualifier in gen_gateway() and gen_proto().

The grammar defines "gateway" and "proto" without a dir qualifier, so an
attempt to use one is an early syntax error, so in every invocation of
these two functions dir == Q_DEFAULT and respecive checks are dead code.
For gen_protochain() this has already been done in commit 81d760f.
gencode.c