summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-01-02 23:08:00 +0000
committerkn <kn@openbsd.org>2019-01-02 23:08:00 +0000
commit97699edbc955e02f58419b17305169051cb36972 (patch)
treeef8d6d78b698c782f49469515f5af06677f2776e /usr.bin/mandoc/man_term.c
parentZap unused segment struct definition (diff)
downloadwireguard-openbsd-97699edbc955e02f58419b17305169051cb36972.tar.xz
wireguard-openbsd-97699edbc955e02f58419b17305169051cb36972.zip
Error out on missing table command, zap internal wrapper function
Table name and table command require each other as reflected in the synopsis [-t table -T command [address ...]], so print usage and exit if only one of them is given. By moving the inter-dependence check right after option parsing is done, we can bail out even before opening pf(4) and drop the internal wrapper pfctl_command_tables() as unneeded indirection with now duplicate checks. OK sashan
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
0 files changed, 0 insertions, 0 deletions