1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Fixed various build problems on FreeBSD and/or CLang

This commit is contained in:
Maria Matejka
2023-01-20 14:07:38 +01:00
parent 1127f19a7a
commit 343628d8c0
8 changed files with 114 additions and 86 deletions

View File

@@ -3352,8 +3352,8 @@ ea_set_hostentry(ea_list **to, rtable *dep, rtable *src, ip_addr gw, ip_addr ll,
struct {
struct adata ad;
struct hostentry *he;
u32 labels[lnum];
} *head = (void *) tmp_alloc_adata(sizeof *head - sizeof(struct adata));
u32 labels[0];
} *head = (void *) tmp_alloc_adata(sizeof *head + sizeof(u32) * lnum - sizeof(struct adata));
RT_LOCKED(src, tab)
head->he = rt_get_hostentry(tab, gw, ll, dep);