summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6d.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-10 12:54:58 +0000
committerpaul <paul>2004-10-10 12:54:58 +0000
commitc7f3ef9f7cdbc2b59ea5ac3ff534fd5ca574ffb6 (patch)
treeceb8370d9926a6c43f50fffe95891bdaa04af951 /ospf6d/ospf6d.c
parentc1e8ebd6035534ada903319afe425d629bf010b3 (diff)
downloadquagga-c7f3ef9f7cdbc2b59ea5ac3ff534fd5ca574ffb6.tar.bz2
quagga-c7f3ef9f7cdbc2b59ea5ac3ff534fd5ca574ffb6.tar.xz
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/ospf6d.c')
-rw-r--r--ospf6d/ospf6d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 695e8eca..d10d1df6 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -129,7 +129,7 @@ config_write_ospf6_debug (struct vty *vty)
"%s AS Scoped Link State Database%s%s"
static int
-parse_show_level (int argc, char **argv)
+parse_show_level (int argc, const char *argv[])
{
int level = 0;
if (argc)
@@ -147,7 +147,7 @@ parse_show_level (int argc, char **argv)
}
static u_int16_t
-parse_type_spec (int argc, char **argv)
+parse_type_spec (int argc, const char *argv[])
{
u_int16_t type = 0;
assert (argc);
@@ -1775,7 +1775,7 @@ DEFUN (show_ipv6_ospf6_linkstate_detail,
"Display linkstate routing table\n"
)
{
- char *sargv[CMD_ARGC_MAX];
+ const char *sargv[CMD_ARGC_MAX];
int i, sargc;
struct listnode *node;
struct ospf6_area *oa;
@@ -1817,7 +1817,7 @@ ospf6_init ()
ospf6_abr_init ();
#ifdef HAVE_SNMP
- ospf6_snmp_init ();
+ ospf6_snmp_init (master);
#endif /*HAVE_SNMP*/
install_node (&debug_node, config_write_ospf6_debug);