From: Howard Chu Date: Thu, 11 May 2006 18:04:26 +0000 (+0000) Subject: ITS#4537 placate braindead compiler X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d8aabb008f266cc4a9258ec937c7bf4ebba42386;p=openldap ITS#4537 placate braindead compiler --- 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