]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: sockaddr len should be socklen_t
authorRoy Marples <roy@marples.name>
Thu, 14 May 2020 00:15:39 +0000 (01:15 +0100)
committerRoy Marples <roy@marples.name>
Thu, 14 May 2020 00:15:39 +0000 (01:15 +0100)
commit9ede1675c859e45f817f09f226e24e72c24a8a50
treeadef07a9770150a93bf8dbcd1843fab5269e744e
parenta07409d50d65db7c05993de5a72ead917b473b13
privsep: sockaddr len should be socklen_t

While ps_root_getifaddrs is only for capsicum, it's highly portable
and thus in the privsep-root rather than privsep-bsd.
As such, store the sockaddr len as socklen_t because that's what
POSIX demands.

It's only a few more bytes and I'd rather make this change now
than it potentially bite me later.
src/privsep-root.c