summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-03-07 22:49:45 +0000
committertb <tb@openbsd.org>2016-03-07 22:49:45 +0000
commit187181395ab71a8ef7babf529d388ba021dd4015 (patch)
treec4d64f9a4eb04182f016db325483fe173c21c8c6 /lib/libc
parentUse opendev() instead of a plain open(). (diff)
downloadwireguard-openbsd-187181395ab71a8ef7babf529d388ba021dd4015.tar.xz
wireguard-openbsd-187181395ab71a8ef7babf529d388ba021dd4015.zip
eliminate do_malloc() and do_free().
These are wrappers for malloc(3) and free(3) with NULL checks. do_free() is pointless since free() already checks for NULL. do_malloc() is used only three times, once asprintf(3) seems more appropriate, and for just two calls the benefit of a custom wrapper is minimal. ok millert@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions