]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/if_rmap.c
Treewide: use ANSI function definitions
[mirror_frr.git] / lib / if_rmap.c
index 53c2824a99a02071de04f5174b68aa5f460a37ea..69da695dcbe2a21274494363223f68fa2947afd0 100644 (file)
@@ -117,7 +117,7 @@ static unsigned int if_rmap_hash_make(void *data)
        return string_hash_make(if_rmap->ifname);
 }
 
-static int if_rmap_hash_cmp(const void *arg1, const void *arg2)
+static bool if_rmap_hash_cmp(const void *arg1, const void *arg2)
 {
        const struct if_rmap *if_rmap1 = arg1;
        const struct if_rmap *if_rmap2 = arg2;
@@ -287,16 +287,14 @@ int config_write_if_rmap(struct vty *vty)
        return write;
 }
 
-void if_rmap_reset()
+void if_rmap_reset(void)
 {
        hash_clean(ifrmaphash, (void (*)(void *))if_rmap_free);
 }
 
 void if_rmap_init(int node)
 {
-       ifrmaphash = hash_create_size(4,
-                                     if_rmap_hash_make,
-                                     if_rmap_hash_cmp,
+       ifrmaphash = hash_create_size(4, if_rmap_hash_make, if_rmap_hash_cmp,
                                      "Interface Route-Map Hash");
        if (node == RIPNG_NODE) {
        } else if (node == RIP_NODE) {