]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: VTY strings cleanup
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 3 Dec 2009 16:25:04 +0000 (19:25 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 3 Dec 2009 16:25:04 +0000 (19:25 +0300)
Several bits of text can be local or are unused.

ospfd/ospf_vty.c

index e144c2996ab1e165e4d300147527b7ea17feb634..adc822a7021cb052ea5ce9a9d3a484c300c90edd 100644 (file)
@@ -3511,7 +3511,7 @@ show_lsa_summary (struct vty *vty, struct ospf_lsa *lsa, int self)
   return 0;
 }
 
-const char *show_database_desc[] =
+static const char *show_database_desc[] =
 {
   "unknown",
   "Router Link States",
@@ -3529,10 +3529,7 @@ const char *show_database_desc[] =
 #endif /* HAVE_OPAQUE_LSA */
 };
 
-#define SHOW_OSPF_COMMON_HEADER \
-  "Link ID         ADV Router      Age  Seq#       CkSum"
-
-const char *show_database_header[] =
+static const char *show_database_header[] =
 {
   "",
   "Link ID         ADV Router      Age  Seq#       CkSum  Link count",
@@ -3550,16 +3547,6 @@ const char *show_database_header[] =
 #endif /* HAVE_OPAQUE_LSA */
 };
 
-const char *show_lsa_flags[] =
-{
-  "Self-originated",
-  "Checked",
-  "Received",
-  "Approved",
-  "Discard",
-  "Translated",
-};
-
 static void
 show_ip_ospf_database_header (struct vty *vty, struct ospf_lsa *lsa)
 {