]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor fix: f_val literals should always have named struct fields
authorMaria Matejka <mq@ucw.cz>
Wed, 16 Mar 2022 09:22:49 +0000 (10:22 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 6 Apr 2022 16:14:08 +0000 (18:14 +0200)
nest/a-path.c

index 2e34a3d1c2eaf16cf8df4641652b9ec35a34cb1c..badbc91152f5966d84119652d2670509080abb53 100644 (file)
@@ -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