diff options
author | 2017-06-16 19:59:13 +0000 | |
---|---|---|
committer | 2017-06-16 19:59:13 +0000 | |
commit | 7363dae4f96fc51b67e37116157344c1739fe00d (patch) | |
tree | 7b5655d07385fdd7069d6b48e3d05117d43f3571 /usr.bin/mandoc/man_term.c | |
parent | Tweak some logging. (diff) | |
download | wireguard-openbsd-7363dae4f96fc51b67e37116157344c1739fe00d.tar.xz wireguard-openbsd-7363dae4f96fc51b67e37116157344c1739fe00d.zip |
pfctl: merge identifical if conditions and void functions discarding ret values
Transform the following functions (which never return anything other than 0, and
whose return value is never used) to void:
* pfctl_clear_stats, pfctl_clear_interface_flags, pfctl_clear_rules,
pfctl_clear_src_nodes, pfctl_clear_states
* pfctl_kill_src_nodes, pfctl_net_kill_states, pfctl_label_kill_states,
pfctl_id_kill_states, pfctl_key_kill_states
inside main: merge two identical if conditions next to each other into one.
Submitted by rain1 (thanks!) with additional credit to:
- mikeb@ for pointing out we can void all _clear_ functions
- ghostyy for pointing out all _kill_ functions can be voided
OK tb@, mikeb@
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
0 files changed, 0 insertions, 0 deletions