]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor fix in log_commit() w.r.t. changes in BFD branch.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 20:58:43 +0000 (21:58 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 20:58:43 +0000 (21:58 +0100)
filter/test.conf
sysdep/unix/log.c

index 62c807b731a242a2e50dc22ef61c71c1507fae4f..ae8a95a63f6e8cc2ab1377187338e7a54cb9e284 100644 (file)
@@ -267,7 +267,7 @@ pair set ps;
 ec set ecs;
 ip set ips;
 prefix set pxs;
-string s;
+string st;
 {
        print "1a-a1 = 30: ", '1a-a1'; 
        print "Testing filter language:";
@@ -352,8 +352,8 @@ string s;
        print "Testing EC set, false: ", (ro, 10, 20) ~ ecs, " ", (rt, 10, 21) ~ ecs, " ", (ro, 100000, 99) ~ ecs,
                " ", (ro, 12345, 10) ~ ecs, " ", (rt, 12346, 0) ~ ecs, " ", (ro, 0.1.134.160, 150) ~ ecs;
 
-       s = "Hello";
-       print "Testing string: ", s, " true: ", s ~ "Hell*", " false: ", s ~ "ell*";
+       st = "Hello";
+       print "Testing string: ", st, " true: ", st ~ "Hell*", " false: ", st ~ "ell*";
        
        b = true;
        print "Testing bool: ", b, ", ", !b;
index 9dd4d66f9e8fd4bba49e27d5685713123a2bd785..0f4c06e9ce810a1f2cfdb92f4eb824de1341b8be 100644 (file)
@@ -130,6 +130,8 @@ log_commit(int class, buffer *buf)
 
   /* FIXME: cli_echo is not thread-safe */
   cli_echo(class, buf->start);
+
+  buf->pos = buf->start;
 }
 
 int buffer_vprint(buffer *buf, const char *fmt, va_list args);