ccanlint: list file errors in order they are encountered.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 10 Nov 2010 06:25:24 +0000 (16:55 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 10 Nov 2010 06:25:24 +0000 (16:55 +1030)
tools/ccanlint/file_analysis.c

index f58dddf241b377c5d99a433abfb5df4e765955a4..6ee74de884c68500b0a29b44e4b8d33f33538379 100644 (file)
@@ -557,5 +557,5 @@ void score_file_error(struct score *score, struct ccan_file *f, unsigned line,
        fe->file = f;
        fe->line = line;
        fe->error = error;
-       list_add(&score->per_file_errors, &fe->list);
+       list_add_tail(&score->per_file_errors, &fe->list);
 }