X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=8f36c2aa521f2d3c2132c508e367a1376fbbe2fa;hb=eaca6b486a6714857f007950e770ac8f6b244511;hp=fb3e4d140fe378108f23b4d0042f5ec41a6fd645;hpb=13c2e75f28189c87d527c0c752de549f21cf505d;p=ccan-lca-2011.git diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index fb3e4d1..8f36c2a 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -59,7 +59,7 @@ static void indent_print(const char *string) bool ask(const char *question) { - char reply[2]; + char reply[80]; printf("%s ", question); fflush(stdout); @@ -153,7 +153,8 @@ static bool run_test(struct ccanlint *i, struct file_error *f; if (score->error) - printf("%s:\n", score->error); + printf("%s%s\n", score->error, + list_empty(&score->per_file_errors) ? "" : ":"); list_for_each(&score->per_file_errors, f, list) { if (f->line)