compat: use socklen_t for getsockopt length

This commit is contained in:
r1w1s1
2026-08-10 15:38:55 -03:00
parent 851c5a933d
commit f466d6289e

View File

@@ -31,7 +31,7 @@ getpeereid(int s, uid_t *uid, gid_t *gid)
{
#ifdef HAVE_SO_PEERCRED
struct ucred uc;
int len = sizeof uc;
socklen_t len = sizeof uc;
if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &len) == -1)
return (-1);