]> git.puffer.fish Git - mirror/frr.git/commitdiff
add comments about warnings
authorgdt <gdt>
Thu, 9 Dec 2004 14:49:51 +0000 (14:49 +0000)
committergdt <gdt>
Thu, 9 Dec 2004 14:49:51 +0000 (14:49 +0000)
ospfd/ospf_network.c
ospfd/ospf_opaque.c

index 7d5b7301d7f3f4b69906c56ee913557c370cd69f..a8d5168188a7a741b7838302f0c34d8feae5da8b 100644 (file)
@@ -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) )
index 4e7b04f05983c16ebb38a783db3c2a0bb17c0480..01a8e1ce1a302b092efaa5bf04e328d85bc14693 100644 (file)
@@ -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;