Skip to content

Commit 9e334af

Browse files
committed
streams: use type php_socket_t instead of type int
1 parent a02b2b8 commit 9e334af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/streams/xp_socket.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,6 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
857857
static inline int php_tcp_sockop_accept(php_stream *stream, php_netstream_data_t *sock,
858858
php_stream_xport_param *xparam STREAMS_DC)
859859
{
860-
int clisock;
861860
bool nodelay = 0;
862861
zval *tmpzval = NULL;
863862

@@ -869,7 +868,7 @@ static inline int php_tcp_sockop_accept(php_stream *stream, php_netstream_data_t
869868
nodelay = 1;
870869
}
871870

872-
clisock = php_network_accept_incoming(sock->socket,
871+
php_socket_t clisock = php_network_accept_incoming(sock->socket,
873872
xparam->want_textaddr ? &xparam->outputs.textaddr : NULL,
874873
xparam->want_addr ? &xparam->outputs.addr : NULL,
875874
xparam->want_addr ? &xparam->outputs.addrlen : NULL,

0 commit comments

Comments
 (0)