]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/aaa/mod_auth_digest.c (gc): Return unsigned long, the type
authorJoe Orton <jorton@apache.org>
Thu, 13 Aug 2026 15:16:06 +0000 (15:16 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 13 Aug 2026 15:16:06 +0000 (15:16 +0000)
  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) <noreply@anthropic.com>
GitHub: PR #705

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

modules/aaa/mod_auth_digest.c

index 50cd0961d5569d705ce57551b8bb0dce37bb79b6..8538740c373aa0a4954c64fbde2e3c8d38450d40 100644 (file)
@@ -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));