]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge svn revision 1048 from Zebra cvs. Also add missing sokopt.h include
authorhasso <hasso>
Wed, 29 Sep 2004 00:26:19 +0000 (00:26 +0000)
committerhasso <hasso>
Wed, 29 Sep 2004 00:26:19 +0000 (00:26 +0000)
to ospf6_network.h.

ospf6d/ChangeLog
ospf6d/ospf6_asbr.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_network.c
ospf6d/ospf6_proto.c
ospf6d/ospf6_proto.h

index e7ef97ec68a357872ce81121fec5c439973db9cc..a37c4ac127764c3b06a5d06393067598d3be2870 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-25  Hasso Tepper  <hasso at estpak.ee>
+
+       * ospf6_asbr.c, ospf6_lsa.c, ospf6_proto.c, ospf6_proto.h: Fix
+       compiler warnings.
+
 2004-09-23 Hasso Tepper <hasso at quagga.net>
 
        * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
index a3728f4efa26636fbe1b71ba8c54b97d372029a7..310508161e7b37f698b085ade37f5aefaaf71983 100644 (file)
@@ -383,7 +383,7 @@ ospf6_asbr_routemap_unset (int type)
 }
 
 void
-ospf6_asbr_routemap_update ()
+ospf6_asbr_routemap_update (char *mapname)
 {
   int type;
 
@@ -460,7 +460,7 @@ ospf6_asbr_redistribute_add (int type, int ifindex, struct prefix *prefix,
   if (ospf6->rmap[type].name)
     {
       if (ospf6->rmap[type].map == NULL)
-        ospf6_asbr_routemap_update ();
+        ospf6_asbr_routemap_update (NULL);
       if (ospf6->rmap[type].map == NULL)
         {
           zlog_warn ("route-map \"%s\" not found, suppress redistributing",
index 6cc6f4dec892e8efb7a531057e609c5c60dbf165..da732798283633e707ceb5c332f773d254a218ab 100644 (file)
@@ -51,8 +51,8 @@ ospf6_unknown_lsa_show (struct vty *vty, struct ospf6_lsa *lsa)
   u_char *start, *end, *current;
   char byte[4];
 
-  start = (char *) lsa->header + sizeof (struct ospf6_lsa_header);
-  end = (char *) lsa->header + ntohs (lsa->header->length);
+  start = (u_char *) lsa->header + sizeof (struct ospf6_lsa_header);
+  end = (u_char *) lsa->header + ntohs (lsa->header->length);
 
   vty_out (vty, "        Unknown contents:%s", VNL);
   for (current = start; current < end; current ++)
@@ -366,8 +366,8 @@ ospf6_lsa_show_dump (struct vty *vty, struct ospf6_lsa *lsa)
   u_char *start, *end, *current;
   char byte[4];
 
-  start = (char *) lsa->header;
-  end = (char *) lsa->header + ntohs (lsa->header->length);
+  start = (u_char *) lsa->header;
+  end = (u_char *) lsa->header + ntohs (lsa->header->length);
 
   vty_out (vty, "%s", VNL);
   vty_out (vty, "%s:%s", lsa->name, VNL);
@@ -670,7 +670,7 @@ ospf6_lsa_checksum (struct ospf6_lsa_header *lsa_header)
 
   lsa_header->checksum = 0;
   length = ntohs (lsa_header->length) - 2;
-  sp = (char *) &lsa_header->type;
+  sp = (u_char *) &lsa_header->type;
 
   for (ep = sp + length; sp < ep; sp = q)
     {
index d5bfdd508b10a00a294e15e0f99d10471b3cc5fd..de0c3f3819bc251e56b6b65f57177fac4868e55a 100644 (file)
@@ -24,6 +24,7 @@
 #include "log.h"
 #include "memory.h"
 #include "sockunion.h"
+#include "sockopt.h"
 #include "privs.h"
 
 #include "ospf6_proto.h"
index 5b47cf80a0053797a4af14970e000522c5af5359..584382ae5239a2fe1b4ff6f98967c45548f64727 100644 (file)
@@ -70,7 +70,7 @@ ospf6_capability_printbuf (char capability, char *buf, int size)
 }
 
 void
-ospf6_options_printbuf (char *options, char *buf, int size)
+ospf6_options_printbuf (u_char *options, char *buf, int size)
 {
   char *dc, *r, *n, *mc, *e, *v6;
   dc = (OSPF6_OPT_ISSET (options, OSPF6_OPT_DC) ? "DC" : "--");
index 2b6ae54da08dafc9aab1b9b63e456cd8fe4b4cb7..9fe821dfb3edf835ab0f6bc3800584eabc008737 100644 (file)
@@ -116,7 +116,7 @@ void ospf6_prefix_apply_mask (struct ospf6_prefix *op);
 void ospf6_prefix_options_printbuf (u_int8_t prefix_options,
                                     char *buf, int size);
 void ospf6_capability_printbuf (char capability, char *buf, int size);
-void ospf6_options_printbuf (char *options, char *buf, int size);
+void ospf6_options_printbuf (u_char *options, char *buf, int size);
 
 #endif /* OSPF6_PROTO_H */