jwoolley 01/07/26 11:40:27
Modified: modules/http http_protocol.c
modules/loggers mod_log_config.c
Log:
Fix printf() warnings related to long->apr_off_t swap
Revision Changes Path
1.336 +1 -1 httpd-2.0/modules/http/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
retrieving revision 1.335
retrieving revision 1.336
diff -u -d -u -r1.335 -r1.336
--- http_protocol.c 2001/07/26 17:12:29 1.335
+++ http_protocol.c 2001/07/26 18:40:24 1.336
@@ -1341,7 +1341,7 @@
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.65 +1 -1 httpd-2.0/modules/loggers/mod_log_config.c
Index: mod_log_config.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -u -r1.64 -r1.65
--- mod_log_config.c 2001/07/26 15:53:15 1.64
+++ mod_log_config.c 2001/07/26 18:40:27 1.65
@@ -391,7 +391,7 @@
return "0";
}
else {
- return apr_psprintf(r->pool, "%ld", r->bytes_sent);
+ return apr_psprintf(r->pool, "%" APR_OFF_T_FMT, r->bytes_sent);
}
}
|