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/ospfd.c b/ospfd/ospfd.c
index 6c6dd8d..0a988e0 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1172,7 +1172,7 @@
int
ospf_area_export_list_set (struct ospf *ospf,
- struct ospf_area *area, char *list_name)
+ struct ospf_area *area, const char *list_name)
{
struct access_list *list;
list = access_list_lookup (AFI_IP, list_name);
@@ -1207,8 +1207,8 @@
}
int
-ospf_area_import_list_set (struct ospf *ospf,
- struct ospf_area *area, char *name)
+ospf_area_import_list_set (struct ospf *ospf, struct ospf_area *area,
+ const char *name)
{
struct access_list *list;
list = access_list_lookup (AFI_IP, name);
@@ -1565,7 +1565,7 @@
int
ospf_nbr_nbma_poll_interval_set (struct ospf *ospf, struct in_addr nbr_addr,
- int interval)
+ unsigned int interval)
{
struct ospf_nbr_nbma *nbr_nbma;