From 20ed27cf4490c0acf80b89ec8f15fc832a774592 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 17 Jul 2002 13:50:26 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 1 + server/protocol.c | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index e15a44f9aa..58aa416590 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 9de5372bcb..563e04cbc6 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)); } -- 2.50.1