]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: move prototype to top of file 8237/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Apr 2021 15:18:02 +0000 (17:18 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Apr 2021 08:33:18 +0000 (10:33 +0200)
nhrp prototype function was not declared at top of the file.
fixing it.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
nhrpd/nhrp_interface.c

index 541e5a992a491497b4bba5b6870c6e8a72fb0251..2db8997bad4e918c639fcee2053c267c33a0dc0a 100644 (file)
@@ -26,6 +26,10 @@ DEFINE_MTYPE_STATIC(NHRPD, NHRP_IF_GRE, "NHRP GRE interface");
 
 struct hash *nhrp_gre_list;
 
+static void nhrp_interface_update_cache_config(struct interface *ifp,
+                                              bool available,
+                                              uint8_t family);
+
 static unsigned int nhrp_gre_info_key(const void *data)
 {
        const struct nhrp_gre_info *r = data;
@@ -61,10 +65,6 @@ struct nhrp_gre_info *nhrp_gre_info_alloc(struct nhrp_gre_info *p)
        return a;
 }
 
-static void nhrp_interface_update_cache_config(struct interface *ifp,
-                                              bool available,
-                                              uint8_t family);
-
 static int nhrp_if_new_hook(struct interface *ifp)
 {
        struct nhrp_interface *nifp;