From: Christopher Jones Date: Tue, 20 Aug 2013 00:48:46 +0000 (-0700) Subject: Remove compile warnings: X-Git-Tag: php-5.5.6RC1~19^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83469477e70cba8191a4698252fc83804e88322b;p=php Remove compile warnings: warning: variable ‘lastch’ set but not used [-Wunused-but-set-variable] warning: variable ‘buf’ set but not used [-Wunused-but-set-variable] --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 0d6704f9d2..2c5bc5d7e3 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -790,7 +790,6 @@ int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, long resumepos TSRMLS_DC) { databuf_t *data = NULL; - int lastch; size_t rcvd; char arg[11]; @@ -828,7 +827,6 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, goto bail; } - lastch = 0; while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { if (rcvd == -1) { goto bail; @@ -1187,12 +1185,9 @@ ftp_readline(ftpbuf_t *ftp) int ftp_getresp(ftpbuf_t *ftp) { - char *buf; - if (ftp == NULL) { return 0; } - buf = ftp->inbuf; ftp->resp = 0; while (1) {