summaryrefslogtreecommitdiff
path: root/nest/a-path.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-16 10:22:49 +0100
committerMaria Matejka <mq@ucw.cz>2022-04-06 18:14:08 +0200
commitaf8568a8700b83f4d1946b7075fa3eac96d1d5b6 (patch)
tree7e8cdceeb61695ee8418ec3140361b364bc8a901 /nest/a-path.c
parent170b20701c46b36e6272d85fd00cc65f72c70b0d (diff)
Minor fix: f_val literals should always have named struct fields
Diffstat (limited to 'nest/a-path.c')
-rw-r--r--nest/a-path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/a-path.c b/nest/a-path.c
index 2e34a3d1..badbc911 100644
--- a/nest/a-path.c
+++ b/nest/a-path.c
@@ -591,7 +591,7 @@ as_path_match_set(const struct adata *path, const struct f_tree *set)
p += 2;
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))
return 1;
p += BS;
@@ -631,7 +631,7 @@ as_path_filter(struct linpool *pool, const struct adata *path, const struct f_tr
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);
}
else