mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 05:50:50 +00:00
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>
This commit is contained in:
parent
2618a52ed3
commit
c7405ee25c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user