1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00

Use socklen_t where appropiate

This commit is contained in:
Sascha Schumann
1999-12-03 14:57:29 +00:00
parent ebaeb919da
commit 7c209d774c
2 changed files with 3 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ int _php3_is_persistent_sock(int sock)
/* {{{ connect_nonb */
PHPAPI int connect_nonb(int sockfd,
struct sockaddr *addr,
int addrlen,
socklen_t addrlen,
struct timeval *timeout)
{
/* probably won't work on Win32, someone else might try it (read: fix it ;) */
@@ -174,7 +174,7 @@ PHPAPI int connect_nonb(int sockfd,
int flags;
int n;
int error = 0;
int len;
socklen_t len;
int ret = 0;
fd_set rset;
fd_set wset;

View File

@@ -71,7 +71,7 @@ int _php3_sock_close(int socket);
size_t _php3_sock_set_def_chunk_size(size_t size);
int php_msock_destroy(int *data);
PHPAPI int connect_nonb(int sockfd, struct sockaddr *addr, int addrlen, struct timeval *timeout);
PHPAPI int connect_nonb(int sockfd, struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout);
PHP_MINIT_FUNCTION(fsock);
PHP_MSHUTDOWN_FUNCTION(fsock);