diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-05 14:23:32 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-05 14:23:32 -0700 |
commit | 4d183a7c8d23a26e67cc81081f42ef3af8c5741f (patch) | |
tree | fd2a1ec480f2de21ff29ed6ca73fe1810b1c7c59 | |
parent | 569502d9290e0eb0a9fceae9c890e2416ea066d1 (diff) | |
download | quagga-4d183a7c8d23a26e67cc81081f42ef3af8c5741f.tar.bz2 quagga-4d183a7c8d23a26e67cc81081f42ef3af8c5741f.tar.xz |
OSPF vty cleanup
Make some strings static, and remove strings that are not used.
-rw-r--r-- | ospfd/ospf_vty.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index fce22e5c..2444dffc 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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) { |