]> granicus.if.org Git - php/commitdiff
Compiler warning fix.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 3 Mar 2003 19:57:18 +0000 (19:57 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 3 Mar 2003 19:57:18 +0000 (19:57 +0000)
main/streams/xp_socket.c

index 79c8f677a5ec96620745f67404d96f8c6eff5bfa..eff166f91aba910ebf73e8ba695236c91aa4f39b 100644 (file)
@@ -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