]> granicus.if.org Git - apache/commitdiff
Should be no change to the execution - simply clean up two compiler
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Oct 2001 15:45:11 +0000 (15:45 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Oct 2001 15:45:11 +0000 (15:45 +0000)
  warnings, signed/unsigned mismatch in != and mismatched type for port.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91214 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c

index 834fd880d1cab3ce16101fe46ddadca440dcd5d7..b396c5f7d5607aca334de6c009648c2b0ad16b0a 100644 (file)
@@ -374,7 +374,7 @@ apr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *in)
            }
            pos = memchr(response, APR_ASCII_LF, len);
            if (pos != NULL) {
-               if ((pos - response + 1) != len) {
+               if ((response + len) != (pos + 1)) {
                    len = pos - response + 1;
                    apr_bucket_split(e, pos - response + 1);
                    
@@ -1130,7 +1130,7 @@ int ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf,
                "%d,%d,%d,%d,%d,%d", &h3, &h2, &h1, &h0, &p1, &p0) == 6)) {
 
                apr_sockaddr_t *pasv_addr;
-               int pasvport = (p1 << 8) + p0;
+               apr_port_t pasvport = (p1 << 8) + p0;
                ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
                              "proxy: FTP: PASV contacting host %d.%d.%d.%d:%d",
                              h3, h2, h1, h0, pasvport);