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/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))