2004-10-11 Paul Jakma <paul@dishone.st>
* (global) Const char update and signed/unsigned fixes.
* (various headers) size defines should be unsigned.
* ospf_interface.h: remove duplicated defines, include the
authoritative header - though, these defines should probably
be moved to a dedicated header, or ospfd.h.
* ospf_lsa.h: (struct lsa) ls_seqnum should be unsigned.
* ospf_packet.c: (ospf_write) cast result of shift to unsigned.
diff --git a/ospfd/ospf_packet.h b/ospfd/ospf_packet.h
index 48f4e13..8de0bfb 100644
--- a/ospfd/ospf_packet.h
+++ b/ospfd/ospf_packet.h
@@ -23,16 +23,16 @@
#ifndef _ZEBRA_OSPF_PACKET_H
#define _ZEBRA_OSPF_PACKET_H
-#define OSPF_HEADER_SIZE 24
-#define OSPF_AUTH_SIMPLE_SIZE 8
-#define OSPF_AUTH_MD5_SIZE 16
+#define OSPF_HEADER_SIZE 24U
+#define OSPF_AUTH_SIMPLE_SIZE 8U
+#define OSPF_AUTH_MD5_SIZE 16U
-#define OSPF_MAX_PACKET_SIZE 65535 /* includes IP Header size. */
-#define OSPF_HELLO_MIN_SIZE 20 /* not including neighbors */
-#define OSPF_DB_DESC_MIN_SIZE 8
-#define OSPF_LS_REQ_MIN_SIZE 0
-#define OSPF_LS_UPD_MIN_SIZE 4
-#define OSPF_LS_ACK_MIN_SIZE 0
+#define OSPF_MAX_PACKET_SIZE 65535U /* includes IP Header size. */
+#define OSPF_HELLO_MIN_SIZE 20U /* not including neighbors */
+#define OSPF_DB_DESC_MIN_SIZE 8U
+#define OSPF_LS_REQ_MIN_SIZE 0U
+#define OSPF_LS_UPD_MIN_SIZE 4U
+#define OSPF_LS_ACK_MIN_SIZE 0U
#define OSPF_MSG_HELLO 1 /* OSPF Hello Message. */
#define OSPF_MSG_DB_DESC 2 /* OSPF Database Descriptoin Message. */