diff options
author | Sascha Schumann <sas@php.net> | 1999-12-03 14:57:29 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-03 14:57:29 +0000 |
commit | 7c209d774c2ed77ccc19ac43f0c074e39235df94 (patch) | |
tree | 08da89a4697bcd750fc3badd855a9255f8389115 | |
parent | ebaeb919da0e31c392f56d1f62529d56044d85a0 (diff) | |
download | php-git-7c209d774c2ed77ccc19ac43f0c074e39235df94.tar.gz |
Use socklen_t where appropiate
-rw-r--r-- | ext/standard/fsock.c | 4 | ||||
-rw-r--r-- | ext/standard/fsock.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index a6845fd134..deedcc8466 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -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; diff --git a/ext/standard/fsock.h b/ext/standard/fsock.h index 9189586ac0..2c469bd271 100644 --- a/ext/standard/fsock.h +++ b/ext/standard/fsock.h @@ -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); |