From dfecdec7d1d1fb99cb73182a7d8da0e23074a4b2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 7 Nov 2010 12:12:31 +1030 Subject: [PATCH] ccanlint: fix compilation of chained examples. Broken in 5378c864f9c37f39d906f599285da25a7db0c9fe: we were trying to recompile the previous failed version. And the message we printed out was unclear. --- tools/ccanlint/tests/examples_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 88530e2b..80c5ba63 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -473,7 +473,7 @@ static void *build_examples(struct manifest *m, bool keep, char **new = combine(i, get_ccan_file_lines(i), prev); mangle2 = mangle_example(m, i, new, keep); - ret2 = compile(i, m, mangle1, keep); + ret2 = compile(i, m, mangle2, keep); if (!ret2) { prev = new; score->score++; @@ -498,9 +498,9 @@ static void *build_examples(struct manifest *m, bool keep, if (mangle2) { score->errors = talloc_asprintf_append(score->errors, - "%s\n" "%s: tried combining with" " previous example:\n" + "%s\n" "Errors: %s\n\n", i->name, get_ccan_file_contents(mangle2), -- 2.39.2