From a75fb2a7646da4e7dd54c066ea9f93939f341dc4 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 10 Aug 2025 17:42:46 +0100 Subject: [PATCH] Properly cast llfind parameter GCC 15 gets stricter about various things, causing us to error out on build due to this assignment without a cast. --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash.c b/hash.c index 9357831..4671f74 100644 --- a/hash.c +++ b/hash.c @@ -140,10 +140,10 @@ static int stats_key_cmp(struct stats_key *key, uint64_t *keyid) struct stats_key *findinhash(uint64_t keyid) { - int (*p)(); + int (*p)(const void *, const void *); struct ll *found; - p = stats_key_cmp; + p = (int (*)(const void *, const void *))stats_key_cmp; if ((found = llfind(hashtable[keyid & HASHMASK], &keyid, p))==NULL) { return NULL; } -- 2.39.5