]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: address more trivial compiler warnings
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 27 Aug 2011 18:19:34 +0000 (22:19 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Sep 2011 17:41:33 +0000 (21:41 +0400)
* ospf6_main.c: include required headers
* ospf6_asbr.h: idem
* ospf6_spf.c
  * ospf6_spf_install(): remove unused variables

ospf6d/ospf6_asbr.h
ospf6d/ospf6_main.c
ospf6d/ospf6_spf.c

index cd1c939ace84fd63e0dc531a89853aff9e3395de..6aab1df0b836b52eb4e806888acfa11eb8534303 100644 (file)
 #ifndef OSPF6_ASBR_H
 #define OSPF6_ASBR_H
 
+/* for struct ospf6_prefix */
+#include "ospf6_proto.h"
+/* for struct ospf6_lsa */
+#include "ospf6_lsa.h"
+/* for struct ospf6_route */
+#include "ospf6_route.h"
+
 /* Debug option */
 extern unsigned char conf_debug_ospf6_asbr;
 #define OSPF6_DEBUG_ASBR_ON() \
index 800fae4b4ec5cf9e3876511dc9ad5cc91291a5c2..0e61315271c4dad77179dccea87b9b4d7cf53989 100644 (file)
 #include "plist.h"
 #include "privs.h"
 #include "sigevent.h"
+#include "zclient.h"
 
 #include "ospf6d.h"
+#include "ospf6_top.h"
+#include "ospf6_message.h"
+#include "ospf6_asbr.h"
+#include "ospf6_lsa.h"
 
 /* Default configuration file name for ospf6d. */
 #define OSPF6_DEFAULT_CONFIG       "ospf6d.conf"
index cb5496187c44bdff02eba34c48838913e7cdcfc1..beb6d7f7ee17d84e82bf7e5c454d5cf91f000015 100644 (file)
@@ -282,8 +282,7 @@ ospf6_spf_install (struct ospf6_vertex *v,
 {
   struct ospf6_route *route;
   int i, j;
-  struct ospf6_vertex *prev, *w;
-  struct listnode *node, *nnode;
+  struct ospf6_vertex *prev;
 
   if (IS_OSPF6_DEBUG_SPF (PROCESS))
     zlog_debug ("SPF install %s hops %d cost %d",