summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-12 20:39:46 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-13 13:35:33 +0200
commitc7405ee25c64fbf280dc8c77b2187b51593c3875 (patch)
treea0cd00507e101437c3345944119bf825193cb429 /ripngd
parent*: config.h or zebra.h is the first #include (diff)
downloadfrr-c7405ee25c64fbf280dc8c77b2187b51593c3875.tar.xz
frr-c7405ee25c64fbf280dc8c77b2187b51593c3875.zip
ripd, ripngd: fix OpenBSD compiler warning
The fact that the OpenBSD RB_TREE stuff results in a compiler warning on OpenBSD - and OpenBSD alone - is pretty funny, I have to say... Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripng_northbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripngd/ripng_northbound.c b/ripngd/ripng_northbound.c
index cbf62c53f..588f6db03 100644
--- a/ripngd/ripng_northbound.c
+++ b/ripngd/ripng_northbound.c
@@ -105,12 +105,12 @@ static int ripngd_instance_destroy(enum nb_event event,
static const void *ripngd_instance_get_next(const void *parent_list_entry,
const void *list_entry)
{
- const struct ripng *ripng = list_entry;
+ struct ripng *ripng = (struct ripng *)list_entry;
if (list_entry == NULL)
ripng = RB_MIN(ripng_instance_head, &ripng_instances);
else
- ripng = RB_NEXT(ripng_instance_head, (struct ripng *)ripng);
+ ripng = RB_NEXT(ripng_instance_head, ripng);
return ripng;
}