]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/lib/test_srcdest_table.c
lib: hashing functions should take const arguments
[mirror_frr.git] / tests / lib / test_srcdest_table.c
index 19a40b21841f964ac583c9121106191a980391a2..0fca571d28b07220342e48aff13c4e016c867ef0 100644 (file)
@@ -81,9 +81,9 @@ static char *format_srcdest(const struct prefix_ipv6 *dst_p,
        return rv;
 }
 
-static unsigned int log_key(void *data)
+static unsigned int log_key(const void *data)
 {
-       struct prefix *hash_entry = data;
+       const struct prefix *hash_entry = data;
        struct prefix_ipv6 *dst_p = (struct prefix_ipv6 *)&hash_entry[0];
        struct prefix_ipv6 *src_p = (struct prefix_ipv6 *)&hash_entry[1];
        unsigned int hash = 0;