From 13cbd433bd3659c8c765b03a1aadc445a6861b78 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 11 Jun 2009 16:21:52 +0000 Subject: [PATCH] Cast getpeername() arg from struct sockaddr_un* to struct sockaddr* --- libraries/libldap/os-local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index aafce8b8e2..6f798a71fa 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -234,7 +234,7 @@ sendcred: msg.msg_accrights = (char *)fds; msg.msg_accrightslen = sizeof(int); # endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */ - getpeername( s, sa, &salen ); + getpeername( s, (struct sockaddr *) sa, &salen ); fchmod( fds[0], S_ISUID|S_IRWXU ); write( fds[1], sa, salen ); sendmsg( s, &msg, 0 ); -- 2.39.5