diff options
author | hasso <hasso> | 2004-09-26 16:09:34 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-09-26 16:09:34 +0000 |
commit | c9e52be3f4d98943b67fbbe5d9a7ccd823b88326 (patch) | |
tree | d4045a946af3be8bbdc303162778e8c44057e2f9 /ripngd/ripngd.c | |
parent | e473b032b860444b9656cee1654b0120f77b52b1 (diff) | |
download | quagga-c9e52be3f4d98943b67fbbe5d9a7ccd823b88326.tar.bz2 quagga-c9e52be3f4d98943b67fbbe5d9a7ccd823b88326.tar.xz |
Compiler warnings fixes.
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r-- | ripngd/ripngd.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 874848c9..4d7c0216 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -1585,9 +1585,9 @@ ripng_write_rte (int num, struct stream *s, struct prefix_ipv6 *p, /* Write routing table entry. */ if (!nexthop) - stream_write (s, (caddr_t) &p->prefix, sizeof (struct in6_addr)); + stream_write (s, (u_char *) &p->prefix, sizeof (struct in6_addr)); else - stream_write (s, (caddr_t) nexthop, sizeof (struct in6_addr)); + stream_write (s, (u_char *) nexthop, sizeof (struct in6_addr)); stream_putw (s, tag); if (p) stream_putc (s, p->prefixlen); @@ -2813,7 +2813,7 @@ ripng_distribute_update_interface (struct interface *ifp) /* Update all interface's distribute list. */ void -ripng_distribute_update_all () +ripng_distribute_update_all (struct prefix_list *notused) { struct interface *ifp; struct listnode *node; @@ -2824,6 +2824,12 @@ ripng_distribute_update_all () ripng_distribute_update_interface (ifp); } } + +void +ripng_distribute_update_all_wrapper (struct access_list *notused) +{ + ripng_distribute_update_all(NULL); +} /* delete all the added ripng routes. */ void @@ -2985,7 +2991,7 @@ ripng_routemap_update_redistribute (void) } void -ripng_routemap_update () +ripng_routemap_update (char *unused) { struct interface *ifp; struct listnode *node; @@ -3049,8 +3055,8 @@ ripng_init () /* Access list install. */ access_list_init (); - access_list_add_hook (ripng_distribute_update_all); - access_list_delete_hook (ripng_distribute_update_all); + access_list_add_hook (ripng_distribute_update_all_wrapper); + access_list_delete_hook (ripng_distribute_update_all_wrapper); /* Prefix list initialize.*/ prefix_list_init (); |