]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/ferr.c
lib: hashing functions should take const arguments
[mirror_frr.git] / lib / ferr.c
index d7fa1a84f8955960e010cb7a673368262103dc9b..65c0cf886d3fbfaf677b144bb6072d87354dd645 100644 (file)
@@ -72,9 +72,9 @@ static bool ferr_hash_cmp(const void *a, const void *b)
        return f_a->code == f_b->code;
 }
 
-static inline unsigned int ferr_hash_key(void *a)
+static inline unsigned int ferr_hash_key(const void *a)
 {
-       struct log_ref *f = a;
+       const struct log_ref *f = a;
 
        return f->code;
 }