]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix some discrepancies between format strings and arguments,
authorJeff Trawick <trawick@apache.org>
Tue, 15 Apr 2003 22:47:58 +0000 (22:47 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 15 Apr 2003 22:47:58 +0000 (22:47 +0000)
resolving some warnings on 64-bit systems

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99374 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c
modules/http/http_protocol.c
server/protocol.c

index f2878ae2a25d4d861562045c206a708fe4c04898..f2c51c9cda30a96469bd7bc190a8dc427e36d056 100644 (file)
@@ -211,9 +211,8 @@ static apr_status_t chunk_filter(ap_filter_t *f, apr_bucket_brigade *b)
              * Insert the chunk header, specifying the number of bytes in
              * the chunk.
              */
-            /* XXX might be nice to have APR_OFF_T_FMT_HEX */
             hdr_len = apr_snprintf(chunk_hdr, sizeof(chunk_hdr),
-                                   "%qx" CRLF, (apr_uint64_t)bytes);
+                                   "%" APR_UINT64_T_HEX_FMT CRLF, (apr_uint64_t)bytes);
             ap_xlate_proto_to_ascii(chunk_hdr, hdr_len);
             e = apr_bucket_transient_create(chunk_hdr, hdr_len,
                                             c->bucket_alloc);
index eac8daae11accb22a8df519a845308a82d32733b..46fa3321278e7464b8eb85091303c26c62eb19cd 100644 (file)
@@ -2907,9 +2907,8 @@ 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());
+            ctx->boundary = apr_psprintf(r->pool, "%" APR_UINT64_T_HEX_FMT "%lx",
+                                         (apr_uint64_t)r->request_time, (long) getpid());
 
             ap_set_content_type(r, apr_pstrcat(r->pool, "multipart",
                                                use_range_x(r) ? "/x-" : "/",
index 1985d505ae47ab78fe1e97be89ae9225b03df2dc..22d044e26a61058bf435113a0fecca7d5e29084a 100644 (file)
@@ -1100,9 +1100,9 @@ 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));
+                   apr_psprintf(r->pool, "Digest realm=\"%s\", nonce=\""
+                                "%" APR_UINT64_T_HEX_FMT "\"",
+                                ap_auth_name(r), (apr_uint64_t)r->request_time));
 }
 
 AP_DECLARE(int) ap_get_basic_auth_pw(request_rec *r, const char **pw)