mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Minor fix: f_val literals should always have named struct fields
This commit is contained in:
parent
170b20701c
commit
af8568a870
@ -591,7 +591,7 @@ as_path_match_set(const struct adata *path, const struct f_tree *set)
|
|||||||
p += 2;
|
p += 2;
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
struct f_val v = {T_INT, .val.i = get_as(p)};
|
struct f_val v = { .type = T_INT, .val.i = get_as(p)};
|
||||||
if (find_tree(set, &v))
|
if (find_tree(set, &v))
|
||||||
return 1;
|
return 1;
|
||||||
p += BS;
|
p += BS;
|
||||||
@ -631,7 +631,7 @@ as_path_filter(struct linpool *pool, const struct adata *path, const struct f_tr
|
|||||||
|
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
struct f_val v = {T_INT, .val.i = as};
|
struct f_val v = { .type = T_INT, .val.i = as};
|
||||||
match = !!find_tree(set, &v);
|
match = !!find_tree(set, &v);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user