From: Jeff Trawick Date: Wed, 17 Jul 2002 13:50:26 +0000 (+0000) Subject: add notes about a portability problem -- formatting apr_time_t X-Git-Tag: 2.0.40~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9437341232709f368bcf1bdcff25ab08f320a428;p=thirdparty%2Fapache%2Fhttpd.git add notes about a portability problem -- formatting apr_time_t in hex git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96094 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index e15a44f9aa5..58aa4165907 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -2803,6 +2803,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f, if (ctx->num_ranges > 1) { /* Is ap_make_content_type required here? */ const char *orig_ct = ap_make_content_type(r, r->content_type); + /* need APR_TIME_T_FMT_HEX */ ctx->boundary = apr_psprintf(r->pool, "%qx%lx", r->request_time, (long) getpid()); diff --git a/server/protocol.c b/server/protocol.c index 9de5372bcb2..563e04cbc6f 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1151,6 +1151,7 @@ AP_DECLARE(void) ap_note_digest_auth_failure(request_rec *r) apr_table_setn(r->err_headers_out, (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate", + /* need APR_TIME_T_FMT_HEX */ apr_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%llx\"", ap_auth_name(r), r->request_time)); }