diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-02-01 18:11:16 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-02-01 18:11:16 +0000 |
commit | c6ccc4328560799f8532e0dd14fecea46245db15 (patch) | |
tree | 5393e1bc57758244af82e37a57182233594b5c46 /main/network.c | |
parent | 44cd358f04249852e724c4288ef6b0584fad0354 (diff) | |
download | php-git-c6ccc4328560799f8532e0dd14fecea46245db15.tar.gz |
- Fixed several comparisons that always result in true of false
due to signedness of one of the operands, either by removing
dead code or fixing it.
- Thrown some comments around in php_stream_get_record.
- See http://www.mail-archive.com/internals@lists.php.net/msg49525.html
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index a4377f2022..0cfd777e4a 100644 --- a/main/network.c +++ b/main/network.c @@ -1133,7 +1133,8 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) { fd_set rset, wset, eset; php_socket_t max_fd = SOCK_ERR; - unsigned int i, n; + unsigned int i; + int n; struct timeval tv; /* check the highest numbered descriptor */ |