X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=13a40afc20ab02ec6f876bde253e715f7a281f13;hb=292c2ca6e9fac35da9fb7ded643a438cea51ed1b;hp=94132babc1c2f85abb322641a384df3364ef94e6;hpb=38b3aec67e67dfaff67670494e6e570bff2246aa;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index 94132babc..13a40afc2 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -999,7 +999,7 @@ void begin_session(struct CitContext *con) { /* as http://www.wsinnovations.com/softeng/articles/uds.html told us... */ struct ucred credentials; - int ucred_length = sizeof(struct ucred); + socklen_t ucred_length = sizeof(struct ucred); /*fill in the user data structure */ if(getsockopt(con->client_socket, SOL_SOCKET, SO_PEERCRED, &credentials, &ucred_length)) {