diff options
| author | David Lamparter <equinox@diac24.net> | 2019-06-12 20:39:46 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-06-13 13:35:33 +0200 |
| commit | c7405ee25c64fbf280dc8c77b2187b51593c3875 (patch) | |
| tree | a0cd00507e101437c3345944119bf825193cb429 | |
| parent | 2618a52ed307ffe62f45fb345fa5d90a631fc4f6 (diff) | |
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>
| -rw-r--r-- | ripd/rip_northbound.c | 4 | ||||
| -rw-r--r-- | ripngd/ripng_northbound.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ripd/rip_northbound.c b/ripd/rip_northbound.c index e0ddb9c468..f8a7f5dc67 100644 --- a/ripd/rip_northbound.c +++ b/ripd/rip_northbound.c @@ -103,12 +103,12 @@ static int ripd_instance_destroy(enum nb_event event, static const void *ripd_instance_get_next(const void *parent_list_entry, const void *list_entry) { - const struct rip *rip = list_entry; + struct rip *rip = (struct rip *)list_entry; if (list_entry == NULL) rip = RB_MIN(rip_instance_head, &rip_instances); else - rip = RB_NEXT(rip_instance_head, (struct rip *)rip); + rip = RB_NEXT(rip_instance_head, rip); return rip; } diff --git a/ripngd/ripng_northbound.c b/ripngd/ripng_northbound.c index cbf62c53ff..588f6db037 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; } |
