2005-11-03 Paul Jakma <paul.jakma@sun.com>

	* ospf_apiserver.c: (apiserver_sync_callback) stray semi-colon
	* ospf_packet.c: include checksum.h, remove the in_cksum extern
	* prototypes.
	* ospf_te.h: Add braces, quell warning.
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index fc0d599..aef7121 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-03 Paul Jakma <paul.jakma@sun.com>
+
+	* ospf_apiserver.c: (apiserver_sync_callback) stray semi-colon
+	* ospf_packet.c: include checksum.h, remove the in_cksum extern
+	* prototypes.
+	* ospf_te.h: Add braces, quell warning.
+	  
 2005-10-29 Paul Jakma <paul.jakma@sun.com>
 
 	* (general) RFC3137 stub-router support
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 577419d..2ee4d3e 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -1301,7 +1301,7 @@
       struct in_addr area_id = { .s_addr = 0L };
 
       /* Default interface for non Opaque9 LSAs */
-      struct in_addr ifaddr = { .s_addr = 0L };;
+      struct in_addr ifaddr = { .s_addr = 0L };
       
       if (lsa->area)
 	{
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 8b818d7..d41fff5 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -32,6 +32,7 @@
 #include "stream.h"
 #include "log.h"
 #include "sockopt.h"
+#include "checksum.h"
 #include "md5.h"
 
 #include "ospfd/ospfd.h"
@@ -59,8 +60,6 @@
   "Link State Acknowledgment",
 };
 
-extern int in_cksum (void *ptr, int nbytes);
-
 /* OSPF authentication checking function */
 static int
 ospf_auth_type (struct ospf_interface *oi)
@@ -2193,7 +2192,6 @@
 {
   u_int32_t ret;
   u_int16_t sum;
-  int in_cksum (void *ptr, int nbytes);
 
   /* clear auth_data for checksum. */
   memset (ospfh->u.auth_data, 0, OSPF_AUTH_SIMPLE_SIZE);
diff --git a/ospfd/ospf_te.h b/ospfd/ospf_te.h
index 8a7a98c..e8511cd 100644
--- a/ospfd/ospf_te.h
+++ b/ospfd/ospf_te.h
@@ -73,10 +73,10 @@
 };
 
 #define TLV_HDR_SIZE \
-	sizeof (struct te_tlv_header)
+	(sizeof (struct te_tlv_header))
 
 #define TLV_BODY_SIZE(tlvh) \
-	ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t))
+	(ROUNDUP (ntohs ((tlvh)->length), sizeof (u_int32_t)))
 
 #define TLV_SIZE(tlvh) \
 	(TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))