diff options
author | gdt <gdt> | 2004-12-09 14:49:51 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-12-09 14:49:51 +0000 |
commit | f4436f7bb8234f86a1a38e2d8497b70a448a7246 (patch) | |
tree | c92d79e64baf36912260617b238f9158f3ba5ffb /ospfd | |
parent | 6a250b099fe25627e32e5ca58f5677ba5227f816 (diff) |
add comments about warnings
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_network.c | 4 | ||||
-rw-r--r-- | ospfd/ospf_opaque.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index 7d5b7301..a8d51681 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -154,6 +154,10 @@ int ospf_sock_init (void) { int ospf_sock; + /* + * XXX warning: unused variable `tos' + * tos should be ifdefed similarly to usage + */ int ret, tos, hincl = 1; if ( ospfd_privs.change (ZPRIVS_RAISE) ) diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c index 4e7b04f0..01a8e1ce 100644 --- a/ospfd/ospf_opaque.c +++ b/ospfd/ospf_opaque.c @@ -223,6 +223,7 @@ ospf_opaque_type_name (u_char opaque_type) default: if (OPAQUE_TYPE_RANGE_UNASSIGNED (opaque_type)) name = "Unassigned"; + /* XXX warning: comparison is always true due to limited range of data type */ else if (OPAQUE_TYPE_RANGE_RESERVED (opaque_type)) name = "Private/Experimental"; break; |