]> git.sur5r.net Git - openldap/commitdiff
ITS#4537 placate braindead compiler
authorHoward Chu <hyc@openldap.org>
Thu, 11 May 2006 18:04:26 +0000 (18:04 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 May 2006 18:04:26 +0000 (18:04 +0000)
servers/slapd/daemon.c

index 4e93170bc1eb0b5527b300b455df6d92f55c1d54..97fd9741b33ad862a9e28342952b2d039366ed27 100644 (file)
@@ -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