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_snmp.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_snmp.c')
-rw-r--r-- | ospfd/ospf_snmp.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c index 3be3ce41..ccb64982 100644 --- a/ospfd/ospf_snmp.c +++ b/ospfd/ospf_snmp.c @@ -919,7 +919,7 @@ ospfLsdbLookup (struct variable *v, oid *name, size_t *length, struct ospf *ospf; struct ospf_area *area; struct ospf_lsa *lsa; - int len; + unsigned int len; int type_next; int ls_id_next; int router_id_next; @@ -1130,7 +1130,7 @@ ospfAreaRangeLookup (struct variable *v, oid *name, size_t *length, { oid *offset; int offsetlen; - int len; + unsigned int len; struct ospf *ospf; struct ospf_area *area; struct ospf_area_range *range; @@ -1566,7 +1566,7 @@ struct interface * ospfIfLookup (struct variable *v, oid *name, size_t *length, struct in_addr *ifaddr, unsigned int *ifindex, int exact) { - int len; + unsigned int len; int ifaddr_next = 0; int ifindex_next = 0; struct interface *ifp; @@ -1731,7 +1731,7 @@ struct interface * ospfIfMetricLookup (struct variable *v, oid *name, size_t *length, struct in_addr *ifaddr, unsigned int *ifindex, int exact) { - int len; + unsigned int len; int ifaddr_next = 0; int ifindex_next = 0; struct interface *ifp; @@ -1943,7 +1943,7 @@ ospfVirtIfLookup (struct variable *v, oid *name, size_t *length, struct in_addr *area_id, struct in_addr *neighbor, int exact) { int first; - int len; + unsigned int len; struct ospf_vl_data *vl_data; if (exact) @@ -2128,7 +2128,7 @@ struct ospf_neighbor * ospfNbrLookup (struct variable *v, oid *name, size_t *length, struct in_addr *nbr_addr, unsigned int *ifindex, int exact) { - int len; + unsigned int len; int first; struct ospf_neighbor *nbr; struct ospf *ospf; @@ -2300,7 +2300,7 @@ ospfExtLsdbLookup (struct variable *v, oid *name, size_t *length, u_char *type, oid *offset; int offsetlen; u_char lsa_type; - int len; + unsigned int len; struct ospf_lsa *lsa; struct ospf *ospf; @@ -2477,8 +2477,6 @@ ospfAreaAggregateEntry (struct variable *v, oid *name, size_t *length, void ospf_snmp_init () { - struct ospf *ospf; - ospf_snmp_iflist = list_new (); ospf_snmp_vl_table = route_table_init (); smux_init (om->master, ospfd_oid, sizeof (ospfd_oid) / sizeof (oid)); |