From ee6b7a6552c749292ae9b81a3463b558d7812898 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 13 Aug 2009 01:48:32 +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.2