diff options
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 df8069144e..7b31a37a0b 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -869,7 +869,7 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, } while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { - if (rcvd == -1) { + if (rcvd == (size_t)-1) { goto bail; } @@ -1836,7 +1836,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path) lines = 0; lastch = 0; while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { - if (rcvd == -1 || rcvd > ((size_t)(-1))-size) { + if (rcvd == (size_t)-1 || rcvd > ((size_t)(-1))-size) { goto bail; } @@ -1965,7 +1965,7 @@ ftp_nb_continue_read(ftpbuf_t *ftp) lastch = ftp->lastch; if ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { - if (rcvd == -1) { + if (rcvd == (size_t)-1) { goto bail; } |