From 292c2ca6e9fac35da9fb7ded643a438cea51ed1b Mon Sep 17 00:00:00 2001 From: Dave West Date: Sat, 24 Oct 2009 23:30:34 +0000 Subject: [PATCH] Fix that annoying warning about signedness. --- citadel/citserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2