summaryrefslogtreecommitdiff
path: root/src/libstddjb/getpeereid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/getpeereid.c')
-rw-r--r--src/libstddjb/getpeereid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/getpeereid.c b/src/libstddjb/getpeereid.c
index bf70aca..581aac1 100644
--- a/src/libstddjb/getpeereid.c
+++ b/src/libstddjb/getpeereid.c
@@ -19,7 +19,7 @@
int getpeereid (int s, uid_t *u, gid_t *g)
{
struct ucred blah ;
- unsigned int len = sizeof(blah) ;
+ socklen_t len = sizeof(blah) ;
if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &blah, &len) == -1)
return -1 ;