]> granicus.if.org Git - apache/commitdiff
Fix format string warnings from gcc on amd64:
authorJoe Orton <jorton@apache.org>
Fri, 12 Dec 2003 12:36:50 +0000 (12:36 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 12 Dec 2003 12:36:50 +0000 (12:36 +0000)
* modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_store):
Print apr_size_t using APR_SIZE_T_FMT.

* modules/ssl/ssl_engine_io.c (ssl_filter_write): Print difference
between sizes using APR_SSIZE_T_FMT, apr_size_t using APR_SIZE_T_FMT.

* modules/proxy/proxy_http.c (ap_proxy_http_request): Print
apr_uint64_t using APR_UINT64_T_HEX_FMT.

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

modules/proxy/proxy_http.c
modules/ssl/ssl_engine_io.c
modules/ssl/ssl_scache_dbm.c

index aab0661390cda51fe59d3c11c9c35f2a0b2dd201..18bc5a881951d6f973e31d0cdf317e18e2922015 100644 (file)
@@ -700,7 +700,8 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r,
             apr_brigade_length(input_brigade, 1, &bytes);
 
             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,
index f3160cc2b7d8109af3d3804ebbef1604fefe331e..717a589d53aa06a422fe3601efaf82aa9e8717e2 100644 (file)
@@ -832,7 +832,8 @@ static apr_status_t ssl_filter_write(ap_filter_t *f,
         }
 
         ap_log_error(APLOG_MARK, APLOG_INFO, outctx->rc, c->base_server,
-                     "failed to write %d of %d bytes (%s)",
+                     "failed to write %" APR_SSIZE_T_FMT 
+                     " of %" APR_SIZE_T_FMT " bytes (%s)",
                      len - (apr_size_t)res, len, reason);
 
         outctx->rc = APR_EGENERAL;
index 126185a66a201e3e4e5a7af078d8698d8d92f6cf..ee8f1c86721b5ab1961bf54c4d3d493faea5a9df 100644 (file)
@@ -147,8 +147,9 @@ BOOL ssl_scache_dbm_store(server_rec *s, UCHAR *id, int idlen, time_t expiry, SS
     /* streamline session data */
     if ((nData = i2d_SSL_SESSION(sess, NULL)) > sizeof(ucaData)) {
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
-                 "streamline session data size too large: %d > %d",
-                 nData, sizeof(ucaData));
+                     "streamline session data size too large: %d > "
+                     "%" APR_SIZE_T_FMT,
+                     nData, sizeof(ucaData));
         return FALSE;
     }
     ucp = ucaData;