From: Joe Orton Date: Thu, 13 Aug 2026 15:16:06 +0000 (+0000) Subject: * modules/aaa/mod_auth_digest.c (gc): Return unsigned long, the type X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5e7b2c88786ca345ff1e7be5d190adc06129a01f;p=thirdparty%2Fapache%2Fhttpd.git * modules/aaa/mod_auth_digest.c (gc): Return unsigned long, the type the count is accumulated in and the type of the client_list counters. (add_client): Log those counters with %lu, all being unsigned. Assisted-by: Claude Opus 5 (1M context) GitHub: PR #705 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937110 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index 50cd0961d5..8538740c37 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -817,7 +817,7 @@ static enum nonce_state client_update_nonce(const request_rec *r, * last entry in each bucket and updates the counters. Returns the * number of removed entries. */ -static long gc(server_rec *s) +static unsigned long gc(server_rec *s) { client_entry *entry, *prev; unsigned long num_removed = 0, idx; @@ -888,11 +888,11 @@ static int add_client(client_id_t key, client_entry *info, server_rec *s) entry = rmm_malloc(client_rmm, sizeof(client_entry)); if (!entry) { - long num_removed = gc(s); + unsigned long num_removed = gc(s); ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, APLOGNO(01766) - "gc'd %ld client entries. Total new clients: " - "%ld; Total removed clients: %ld; Total renewed clients: " - "%ld", num_removed, + "gc'd %lu client entries. Total new clients: " + "%lu; Total removed clients: %lu; Total renewed clients: " + "%lu", num_removed, client_list->num_created - client_list->num_renewed, client_list->num_removed, client_list->num_renewed); entry = rmm_malloc(client_rmm, sizeof(client_entry));