summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-11-26 17:34:36 +0000
committerkrw <krw@openbsd.org>2014-11-26 17:34:36 +0000
commitbbf7feffa2a95ae416db8de80aa7ce2b077433b2 (patch)
treed8e4d75e81a8281cff4b59d2706a272611423127 /usr.bin/patch/patch.c
parentMake option string/struct const (since it is...). I've had this (diff)
downloadwireguard-openbsd-bbf7feffa2a95ae416db8de80aa7ce2b077433b2.tar.xz
wireguard-openbsd-bbf7feffa2a95ae416db8de80aa7ce2b077433b2.zip
'ifi' is successfully calloc'd during initialization or dhclient
exits, so there is no need to constantly check if 'ifi' is NULL. Similarly 'ifi->bfdesc' is successfully opened during initialization or dhclient exits, so there is no point in constantly checking if it has regressed to -1. Finally, no need to check 'ifi->linkstat' before trying to read a packet. If there is a packet it should just as well be read immediately rather than waiting for the link to reappear and confuse things. No intentional functional change.
Diffstat (limited to 'usr.bin/patch/patch.c')
0 files changed, 0 insertions, 0 deletions