From d8aabb008f266cc4a9258ec937c7bf4ebba42386 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 May 2006 18:04:26 +0000 Subject: [PATCH] ITS#4537 placate braindead compiler --- servers/slapd/daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 4e93170bc1..97fd9741b3 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -831,7 +831,8 @@ static int slap_get_listener_addresses( sap[i]->sa_family = AF_INET; ((struct sockaddr_in *)sap[i])->sin_port = htons(port); AC_MEMCPY( &((struct sockaddr_in *)sap[i])->sin_addr, - he ? he->h_addr_list[i] : &in, sizeof(struct in_addr) ); + he ? (struct in_addr *)he->h_addr_list[i] : &in, + sizeof(struct in_addr) ); } sap[i] = NULL; #endif -- 2.39.5