]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
C99 loop declarations not allowed in 1.6.x
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 19 Mar 2018 18:51:11 +0000 (19:51 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 19 Mar 2018 18:51:11 +0000 (19:51 +0100)
filter/config.Y

index 7c077b6570d7ea59a3de985d09aa39fc0e812978..6328ba094c02bce9b1506c1747ce7b3cfc86c135 100644 (file)
@@ -320,7 +320,8 @@ f_generate_lc(struct f_inst *t1, struct f_inst *t2, struct f_inst *t3)
 static inline struct f_inst *
 f_generate_path_mask(struct f_path_mask *t)
 {
-  for (struct f_path_mask *tt = t; tt; tt = tt->next) {
+  struct f_path_mask *tt;
+  for (tt = t; tt; tt = tt->next) {
     if (tt->kind == PM_ASN_EXPR) {
       struct f_inst *mrv = f_new_inst(FI_PATHMASK_CONSTRUCT);
       mrv->a1.p = t;