From: Jonathan McDowell Date: Sun, 10 Aug 2025 16:42:46 +0000 (+0100) Subject: Properly cast llfind parameter X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=a75fb2a7646da4e7dd54c066ea9f93939f341dc4;p=onak.git 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. --- 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; }