diff options
author | paul <paul> | 2004-10-10 12:54:58 +0000 |
---|---|---|
committer | paul <paul> | 2004-10-10 12:54:58 +0000 |
commit | 0c083ee9d870bf02a36563ae1807f3894ac24219 (patch) | |
tree | 04315c9103131381b9ca5e1d576e27a1f22d0da1 /ospf6d/ospf6_snmp.c | |
parent | 9035efaa924c69f4f4fcb1049c7dc4f43b9da980 (diff) |
2004-10-10 Paul Jakma <paul@dishone.st>
* ospf6_route.c: Add const qualifier to various char arrays of
constants. signed/unsigned fixes.
(ospf6_linkstate_table_show) argv is const
* ospf6_snmp.c: listnode typedef is dead.
(ospf6_snmp_init) Take struct thread_master arg, needed for
smux_init.
* ospf6_snmp.h: update ospf6_snmp_init declaration.
* ospf6d.c: (ospf6_init) add const qualifier to sargv, pass master
to ospf_snmp6_init.
* ospf6_asbr.c: const char update.
* ospf6_interface.c: ditto, plus signed/unsigned fixes.
(ipv6_ospf6_cost) Check whether cost fits in u_int32_t and use
strtoul.
* ospf6_intra.c: const char update. Parenthesise expression.
* ospf6_lsa.c: signed/unsigned and const char updates.
* ospf6_proto.c: ditto.
* ospf6_message.c: ditto.
* ospf6_lsdb.c: signed/unsigned update.
* ospf6_main.c: const char update.
* ospf6_neighbor.c: ditto.
* ospf6_spf.c: ditto.
* ospf6_top.c: ditto.
Diffstat (limited to 'ospf6d/ospf6_snmp.c')
-rw-r--r-- | ospf6d/ospf6_snmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_snmp.c b/ospf6d/ospf6_snmp.c index 186c8e2f..98a7f5a9 100644 --- a/ospf6d/ospf6_snmp.c +++ b/ospf6d/ospf6_snmp.c @@ -234,8 +234,8 @@ ospfv3AreaEntry (struct variable *v, oid *name, size_t *length, { struct ospf6_area *oa, *area = NULL; u_int32_t area_id = 0; - listnode node; - int len; + struct listnode *node; + unsigned int len; if (ospf6 == NULL) return NULL; @@ -293,9 +293,9 @@ ospfv3AreaEntry (struct variable *v, oid *name, size_t *length, /* Register OSPFv3-MIB. */ void -ospf6_snmp_init () +ospf6_snmp_init (struct thread_master *master) { - smux_init (ospf6d_oid, sizeof (ospf6d_oid) / sizeof (oid)); + smux_init (master, ospf6d_oid, sizeof (ospf6d_oid) / sizeof (oid)); REGISTER_MIB ("OSPFv3MIB", ospfv3_variables, variable, ospfv3_oid); smux_start (); } |