Message ID | 20250317211603.1134031-1-raj.khem@gmail.com |
---|---|
State | New |
Headers | show |
Series | [libmatchbox] Define correct prototype for hash_empty() | expand |
diff --git a/libmb/hash.h b/libmb/hash.h index 86f18bf..43827b2 100644 --- a/libmb/hash.h +++ b/libmb/hash.h @@ -38,5 +38,5 @@ struct hash* hash_new(int size); unsigned int hashfunc(struct hash *h, char *s); struct nlist *hash_lookup(struct hash *h, char *s); struct nlist *hash_add(struct hash *h, char *key, char *val); -void hash_empty(); +void hash_empty(struct hash *h); void hash_destroy(struct hash *h);
GCC-15 follows C23 standard which does not allow function declarations without parameters and types Fixes ../../git/libmb/hash.c:76:6: error: conflicting types for 'hash_empty'; have 'void(struct hash *)' Signed-off-by: Khem Raj <raj.khem@gmail.com> --- libmb/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)