diff options
author | Andrew Skalski <askalski@php.net> | 2000-05-23 13:56:04 +0000 |
---|---|---|
committer | Andrew Skalski <askalski@php.net> | 2000-05-23 13:56:04 +0000 |
commit | 6d51f4a78879d5160999f7b7ed6094bad89acdaf (patch) | |
tree | 81f31a22028034a71cec551c20dbeb9a5f20c271 /ext/ftp/ftp.c | |
parent | 32dffec0f8899e82d7db06ecf17228f357291d28 (diff) | |
download | php-git-6d51f4a78879d5160999f7b7ed6094bad89acdaf.tar.gz |
Changed the #ifdefs around "errno = ETIMEDOUT;" to include the rest
of the statement ["if (n == 0)"]
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r-- | ext/ftp/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 5cafaea2a3..0fd428a804 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -842,8 +842,8 @@ my_send(int s, void *buf, size_t len) FD_SET(s, &write_set); n = select(s + 1, NULL, &write_set, NULL, &tv); if (n < 1) { - if (n == 0) #ifndef PHP_WIN32 + if (n == 0) errno = ETIMEDOUT; #endif return -1; @@ -875,8 +875,8 @@ my_recv(int s, void *buf, size_t len) FD_SET(s, &read_set); n = select(s + 1, &read_set, NULL, NULL, &tv); if (n < 1) { - if (n == 0) #ifndef PHP_WIN32 + if (n == 0) errno = ETIMEDOUT; #endif return -1; @@ -952,8 +952,8 @@ my_accept(int s, struct sockaddr *addr, int *addrlen) n = select(s + 1, &accept_set, NULL, NULL, &tv); if (n < 1) { - if (n == 0) #ifndef PHP_WIN32 + if (n == 0) errno = ETIMEDOUT; #endif return -1; |