]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_oil.c
lib: hashing functions should take const arguments
[mirror_frr.git] / pimd / pim_oil.c
index 5945bc55fd9299577ef155fb863a248e92e1ed1d..22045c2d337c99ac27aa2b60fa2a768e43959018 100644 (file)
@@ -91,9 +91,9 @@ static bool pim_oil_equal(const void *arg1, const void *arg2)
        return false;
 }
 
-static unsigned int pim_oil_hash_key(void *arg)
+static unsigned int pim_oil_hash_key(const void *arg)
 {
-       struct channel_oil *oil = (struct channel_oil *)arg;
+       const struct channel_oil *oil = arg;
 
        return jhash_2words(oil->oil.mfcc_mcastgrp.s_addr,
                            oil->oil.mfcc_origin.s_addr, 0);