diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 10:03:14 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 10:03:14 -0700 |
commit | 774b5b9ac303291dd153e79a6f6bab918a599025 (patch) | |
tree | 2979f731dcf16aa677c07cc3ae4ff813c35fd2df /ospfd/ospf_abr.c | |
parent | 4421ea9c1df765b81cde6a9a4c2347e12151d230 (diff) | |
download | quagga-774b5b9ac303291dd153e79a6f6bab918a599025.tar.bz2 quagga-774b5b9ac303291dd153e79a6f6bab918a599025.tar.xz |
get rid of compiler warnings in OSPF
To get rid of warnings:
* remove unused functions with ifdef
* use correct printf formats
Diffstat (limited to 'ospfd/ospf_abr.c')
-rw-r--r-- | ospfd/ospf_abr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c index 88636f1a..d60ad120 100644 --- a/ospfd/ospf_abr.c +++ b/ospfd/ospf_abr.c @@ -614,6 +614,7 @@ set_metric (struct ospf_lsa *lsa, u_int32_t metric) memcpy(header->metric, mp, 3); } +#if 0 static int ospf_abr_check_nssa_range (struct prefix_ipv4 *p, u_int32_t cost, struct ospf_area *area) @@ -622,6 +623,7 @@ ospf_abr_check_nssa_range (struct prefix_ipv4 *p, u_int32_t cost, for lsa installation and flooding */ return 0; } +#endif /* ospf_abr_translate_nssa */ static int @@ -1580,6 +1582,7 @@ ospf_abr_send_nssa_aggregates (struct ospf *ospf) /* temporarily turned off */ zlog_debug ("ospf_abr_send_nssa_aggregates(): Stop"); } +#if 0 static void ospf_abr_announce_nssa_defaults (struct ospf *ospf) /* By ABR-Translator */ { @@ -1615,6 +1618,7 @@ ospf_abr_announce_nssa_defaults (struct ospf *ospf) /* By ABR-Translator */ } } } +#endif static void ospf_abr_announce_stub_defaults (struct ospf *ospf) |