]> granicus.if.org Git - apache/commitdiff
Fix printf() warnings related to long->apr_off_t swap
authorCliff Woolley <jwoolley@apache.org>
Thu, 26 Jul 2001 18:40:27 +0000 (18:40 +0000)
committerCliff Woolley <jwoolley@apache.org>
Thu, 26 Jul 2001 18:40:27 +0000 (18:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89738 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c
modules/loggers/mod_log_config.c

index 51e4458bebefa406d5661e821278ad8187ca52d6..5ec8a6b99a04950cbd49b002f2a87b57eb387b63 100644 (file)
@@ -1341,7 +1341,7 @@ AP_DECLARE(int) ap_setup_client_block(request_rec *r, int read_policy)
     if (max_body && (r->remaining > max_body)) {
         ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
                      "Request content-length of %s is larger than "
-                     "the configured limit of %lu", lenp, max_body);
+                     "the configured limit of %" APR_OFF_T_FMT, lenp, max_body);
         return HTTP_REQUEST_ENTITY_TOO_LARGE;
     }
 
index a1ffcc5c69459cfd296195d884eb36633d8db6d2..3e5ae5c1447dd20c3443a39f06e6fc26d9d2e71c 100644 (file)
@@ -391,7 +391,7 @@ static const char *log_bytes_sent(request_rec *r, char *a)
         return "0";
     }
     else {
-       return apr_psprintf(r->pool, "%ld", r->bytes_sent);
+       return apr_psprintf(r->pool, "%" APR_OFF_T_FMT, r->bytes_sent);
     }
 }