X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fmain_header_exists.c;h=52a7e43c52b169dd7c3689dfafedfddf99c95a7d;hb=17a81baf84a9c8f89603173be3169a0a2017702d;hp=cdb01149d97f245a86262e0d7094b3568fe8adc2;hpb=10e5e329a1a8804ff6461e1724071364cf6be572;p=ccan diff --git a/tools/ccanlint/tests/main_header_exists.c b/tools/ccanlint/tests/main_header_exists.c index cdb01149..52a7e43c 100644 --- a/tools/ccanlint/tests/main_header_exists.c +++ b/tools/ccanlint/tests/main_header_exists.c @@ -1,4 +1,6 @@ #include +#include +#include #include #include #include @@ -9,11 +11,11 @@ #include #include #include -#include #include static void check_has_main_header(struct manifest *m, - unsigned int *timeleft, struct score *score) + unsigned int *timeleft UNNEEDED, + struct score *score) { struct ccan_file *f; @@ -25,7 +27,7 @@ static void check_has_main_header(struct manifest *m, return; } } - score->error = talloc_asprintf(score, + score->error = tal_fmt(score, "You have no %s/%s.h header file.\n\n" "CCAN modules have a name, the same as the directory name. They're\n" "expected to have an interface in the header of the same name.\n",