summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-28 10:03:14 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-28 10:03:14 -0700
commit774b5b9ac303291dd153e79a6f6bab918a599025 (patch)
tree2979f731dcf16aa677c07cc3ae4ff813c35fd2df /ospfd/ospf_lsa.c
parent4421ea9c1df765b81cde6a9a4c2347e12151d230 (diff)
downloadquagga-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_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index 243928f4..0d205ee3 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -526,7 +526,7 @@ link_info_set (struct stream *s, struct in_addr id,
if (ret == OSPF_MAX_LSA_SIZE)
{
- zlog_warn ("%s: Out of space in LSA stream, left %ld, size %ld",
+ zlog_warn ("%s: Out of space in LSA stream, left %ld, size %z",
__func__, STREAM_REMAIN (s), STREAM_SIZE (s));
return 0;
}
@@ -1895,6 +1895,7 @@ ospf_lsa_translated_nssa_new (struct ospf *ospf,
return new;
}
+#if 0
/* compare type-5 to type-7
* -1: err, 0: same, 1: different
*/
@@ -1931,6 +1932,7 @@ ospf_lsa_translated_nssa_compare (struct ospf_lsa *t7, struct ospf_lsa *t5)
return LSA_REFRESH_IF_CHANGED;
}
+#endif
/* Originate Translated Type-5 for supplied Type-7 NSSA LSA */
struct ospf_lsa *