diff options
author | paul <paul> | 2004-10-11 11:00:30 +0000 |
---|---|---|
committer | paul <paul> | 2004-10-11 11:00:30 +0000 |
commit | d646f87e1b6c784d55421f02fd270bf171d9928c (patch) | |
tree | c79555028fda59b0ceb5509dbacaf82c44e1198a /ospfd/ospf_zebra.c | |
parent | 9353a2aa75b638a91e8692f807d9f1dbac1d1e8e (diff) | |
download | quagga-d646f87e1b6c784d55421f02fd270bf171d9928c.tar.bz2 quagga-d646f87e1b6c784d55421f02fd270bf171d9928c.tar.xz |
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.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 3172ebc5..331c27c0 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -756,7 +756,7 @@ ospf_redistribute_check (struct ospf *ospf, /* OSPF route-map set for redistribution */ void -ospf_routemap_set (struct ospf *ospf, int type, char *name) +ospf_routemap_set (struct ospf *ospf, int type, const char *name) { if (ROUTEMAP_NAME (ospf, type)) free (ROUTEMAP_NAME (ospf, type)); @@ -883,7 +883,7 @@ ospf_zebra_read_ipv4 (int command, struct zclient *zclient, int -ospf_distribute_list_out_set (struct ospf *ospf, int type, char *name) +ospf_distribute_list_out_set (struct ospf *ospf, int type, const char *name) { /* Lookup access-list for distribute-list. */ DISTRIBUTE_LIST (ospf, type) = access_list_lookup (AFI_IP, name); @@ -903,7 +903,7 @@ ospf_distribute_list_out_set (struct ospf *ospf, int type, char *name) } int -ospf_distribute_list_out_unset (struct ospf *ospf, int type, char *name) +ospf_distribute_list_out_unset (struct ospf *ospf, int type, const char *name) { /* Schedule update timer. */ if (DISTRIBUTE_LIST (ospf, type)) @@ -1120,8 +1120,10 @@ ospf_distance_free (struct ospf_distance *odistance) } int -ospf_distance_set (struct vty *vty, struct ospf *ospf, char *distance_str, - char *ip_str, char *access_list_str) +ospf_distance_set (struct vty *vty, struct ospf *ospf, + const char *distance_str, + const char *ip_str, + const char *access_list_str) { int ret; struct prefix_ipv4 p; @@ -1167,8 +1169,10 @@ ospf_distance_set (struct vty *vty, struct ospf *ospf, char *distance_str, } int -ospf_distance_unset (struct vty *vty, struct ospf *ospf, char *distance_str, - char *ip_str, char *access_list_str) +ospf_distance_unset (struct vty *vty, struct ospf *ospf, + const char *distance_str, + const char *ip_str, char + const *access_list_str) { int ret; struct prefix_ipv4 p; |