]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_route.c
Merge pull request #5590 from qlyoung/fix-nhrp-underflow
[mirror_frr.git] / ospfd / ospf_route.c
index 7ee91b5b6c9655427fea257512e7fc6f53018c43..6cabc0c985dcd6ce8907f4a00c41fce5030e1ebb 100644 (file)
@@ -39,7 +39,7 @@
 #include "ospfd/ospf_zebra.h"
 #include "ospfd/ospf_dump.h"
 
-struct ospf_route *ospf_route_new()
+struct ospf_route *ospf_route_new(void)
 {
        struct ospf_route *new;
 
@@ -51,7 +51,7 @@ struct ospf_route *ospf_route_new()
        return new;
 }
 
-void ospf_route_free(struct ospf_route * or)
+void ospf_route_free(struct ospf_route *or)
 {
        if (or->paths)
                list_delete(& or->paths);
@@ -59,7 +59,7 @@ void ospf_route_free(struct ospf_route * or)
        XFREE(MTYPE_OSPF_ROUTE, or);
 }
 
-struct ospf_path *ospf_path_new()
+struct ospf_path *ospf_path_new(void)
 {
        struct ospf_path *new;
 
@@ -622,8 +622,10 @@ void ospf_intra_add_stub(struct route_table *rt, struct router_lsa_link *link,
                zlog_debug("ospf_intra_add_stub(): Stop");
 }
 
-const char *ospf_path_type_str[] = {"unknown-type", "intra-area", "inter-area",
-                                   "type1-external", "type2-external"};
+static const char *const ospf_path_type_str[] = {
+       "unknown-type", "intra-area", "inter-area", "type1-external",
+       "type2-external"
+};
 
 void ospf_route_table_dump(struct route_table *rt)
 {