]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
netlink: don't pretend that sysconf isn't a function
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 5 Feb 2020 22:59:55 +0000 (23:59 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 5 Feb 2020 22:59:55 +0000 (23:59 +0100)
commit0dc32bbeaf05c0ac7f4b6d131c0473434e12e25a
treed98cb7f8ea204dd8995bbd961c0db6f0e37ffd03
parentef117a91d1aa3caf02f89d0a824fee80a8f88b88
netlink: don't pretend that sysconf isn't a function

We can cache the value of this instead of evaluating every time.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc.c
src/netlink.h