Commit 87e2f901 authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Fix printf() warnings related to long->apr_off_t swap


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89738 13f79535-47bb-0310-9956-ffa450edef68
parent 60adb018
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }

+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
}