summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-10-11 21:06:59 +0000
committerschwarze <schwarze@openbsd.org>2015-10-11 21:06:59 +0000
commiteba1598bbc7f18d6171356c7024e7b6bb98fefbd (patch)
tree3fb4a9dbceedf25618f9199e9a115a8fb1e19fd7 /lib
parentUserspace doesn't need to use SUN_LEN(): connect() and bind() must accept (diff)
downloadwireguard-openbsd-eba1598bbc7f18d6171356c7024e7b6bb98fefbd.tar.xz
wireguard-openbsd-eba1598bbc7f18d6171356c7024e7b6bb98fefbd.zip
Finally use __progname, err(3) and warn(3).
That's more readable and less error-prone than fumbling around with argv[0], fprintf(3), strerror(3), perror(3), and exit(3). It also shortens the code by 50 lines. It's a bad idea to boycott good interfaces merely because standards committees ignore them. Instead, it's the job of the portable distribution to provide compatibility modules for archaic systems (like commercial Solaris) that still don't have them. Actually, the compat code for the portable distribution already exists and will be committed right after this.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions