diff options
author | 2014-11-26 17:34:36 +0000 | |
---|---|---|
committer | 2014-11-26 17:34:36 +0000 | |
commit | bbf7feffa2a95ae416db8de80aa7ce2b077433b2 (patch) | |
tree | d8e4d75e81a8281cff4b59d2706a272611423127 /usr.bin/patch/patch.c | |
parent | Make option string/struct const (since it is...). I've had this (diff) | |
download | wireguard-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