From d646f87e1b6c784d55421f02fd270bf171d9928c Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 11 Oct 2004 11:00:30 +0000 Subject: 2004-10-11 Paul Jakma * (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. --- ospfd/ospf_routemap.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ospfd/ospf_routemap.c') diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c index 52fa901b..074a2dea 100644 --- a/ospfd/ospf_routemap.c +++ b/ospfd/ospf_routemap.c @@ -41,7 +41,7 @@ /* Hook function for updating route_map assignment. */ void -ospf_route_map_update (char *name) +ospf_route_map_update (const char *name) { struct ospf *ospf; int type; @@ -74,7 +74,7 @@ ospf_route_map_update (char *name) } void -ospf_route_map_event (route_map_event_t event, char *name) +ospf_route_map_event (route_map_event_t event, const char *name) { struct ospf *ospf; int type; @@ -98,7 +98,7 @@ ospf_route_map_event (route_map_event_t event, char *name) /* Delete rip route map rule. */ int ospf_route_match_delete (struct vty *vty, struct route_map_index *index, - const char *command, char *arg) + const char *command, const char *arg) { int ret; @@ -123,7 +123,7 @@ ospf_route_match_delete (struct vty *vty, struct route_map_index *index, int ospf_route_match_add (struct vty *vty, struct route_map_index *index, - const char *command, char *arg) + const char *command, const char *arg) { int ret; @@ -148,7 +148,7 @@ ospf_route_match_add (struct vty *vty, struct route_map_index *index, int ospf_route_set_add (struct vty *vty, struct route_map_index *index, - const char *command, char *arg) + const char *command, const char *arg) { int ret; @@ -174,7 +174,7 @@ ospf_route_set_add (struct vty *vty, struct route_map_index *index, /* Delete rip route map rule. */ int ospf_route_set_delete (struct vty *vty, struct route_map_index *index, - const char *command, char *arg) + const char *command, const char *arg) { int ret; @@ -226,7 +226,7 @@ route_match_ip_nexthop (void *rule, struct prefix *prefix, /* Route map `ip next-hop' match statement. `arg' should be access-list name. */ void * -route_match_ip_nexthop_compile (char *arg) +route_match_ip_nexthop_compile (const char *arg) { return XSTRDUP (MTYPE_ROUTE_MAP_COMPILED, arg); } @@ -274,7 +274,7 @@ route_match_ip_next_hop_prefix_list (void *rule, struct prefix *prefix, } void * -route_match_ip_next_hop_prefix_list_compile (char *arg) +route_match_ip_next_hop_prefix_list_compile (const char *arg) { return XSTRDUP (MTYPE_ROUTE_MAP_COMPILED, arg); } @@ -318,7 +318,7 @@ route_match_ip_address (void *rule, struct prefix *prefix, /* Route map `ip address' match statement. `arg' should be access-list name. */ void * -route_match_ip_address_compile (char *arg) +route_match_ip_address_compile (const char *arg) { return XSTRDUP (MTYPE_ROUTE_MAP_COMPILED, arg); } @@ -359,7 +359,7 @@ route_match_ip_address_prefix_list (void *rule, struct prefix *prefix, } void * -route_match_ip_address_prefix_list_compile (char *arg) +route_match_ip_address_prefix_list_compile (const char *arg) { return XSTRDUP (MTYPE_ROUTE_MAP_COMPILED, arg); } @@ -404,7 +404,7 @@ route_match_interface (void *rule, struct prefix *prefix, /* Route map `interface' match statement. `arg' should be interface name. */ void * -route_match_interface_compile (char *arg) +route_match_interface_compile (const char *arg) { return XSTRDUP (MTYPE_ROUTE_MAP_COMPILED, arg); } @@ -448,7 +448,7 @@ route_set_metric (void *rule, struct prefix *prefix, /* set metric compilation. */ void * -route_set_metric_compile (char *arg) +route_set_metric_compile (const char *arg) { u_int32_t *metric; @@ -501,7 +501,7 @@ route_set_metric_type (void *rule, struct prefix *prefix, /* set metric-type compilation. */ void * -route_set_metric_type_compile (char *arg) +route_set_metric_type_compile (const char *arg) { u_int32_t *metric_type; -- cgit v1.2.3