X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fmain_header_exists.c;h=52a7e43c52b169dd7c3689dfafedfddf99c95a7d;hp=b6150dc844c8232e3e32528e8e01f49fc672bf37;hb=1ddb7420f1ac53c060aec62e26702d1d7029fc54;hpb=441a3cb13e428cfa4973d83acb68e231a7cd4cf4 diff --git a/tools/ccanlint/tests/main_header_exists.c b/tools/ccanlint/tests/main_header_exists.c index b6150dc8..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,12 +11,11 @@ #include #include #include -#include #include static void check_has_main_header(struct manifest *m, - bool keep, - unsigned int *timeleft, struct score *score) + unsigned int *timeleft UNNEEDED, + struct score *score) { struct ccan_file *f; @@ -26,11 +27,11 @@ 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", - m->basename, m->basename); + m->modname, m->basename); } struct ccanlint main_header_exists = {