]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_te.c
*: generously apply const
[mirror_frr.git] / ospfd / ospf_te.c
index 1488aa88cd4edadbc8f6ec8bcfa37f9807b179d1..8da99843e6ce280f545679efb4f2d41b2080788e 100644 (file)
@@ -69,7 +69,7 @@
  */
 struct ospf_mpls_te OspfMplsTE;
 
-const char *mode2text[] = {"Off", "AS", "Area"};
+static const char *const mode2text[] = {"Off", "AS", "Area"};
 
 /*------------------------------------------------------------------------*
  * Followings are initialize/terminate functions for MPLS-TE handling.
@@ -2535,7 +2535,7 @@ DEFUN (show_ip_ospf_mpls_te_link,
        struct interface *ifp = NULL;
        struct listnode *node;
        char *vrf_name = NULL;
-       bool all_vrf;
+       bool all_vrf = false;
        int inst = 0;
        int idx_vrf = 0;
        struct ospf *ospf = NULL;