From: Ilia Alshanetsky Date: Mon, 3 Mar 2003 19:57:18 +0000 (+0000) Subject: Compiler warning fix. X-Git-Tag: RELEASE_0_5~639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb4dab36f4ebd030871de8e54def828e983e6c85;p=php Compiler warning fix. --- diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index 79c8f677a5..eff166f91a 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -410,7 +410,7 @@ static inline int php_tcp_sockop_bind(php_stream *stream, php_netstream_data_t * parse_unix_address(xparam, &unix_addr TSRMLS_CC); - return bind(sock->socket, &unix_addr, sizeof(unix_addr)); + return bind(sock->socket, (struct sockaddr *)&unix_addr, sizeof(unix_addr)); } #endif