X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fmain_header_exists.c;h=2af9afc00892a7561fdf92f6b514f777ef78c0b5;hb=bdb8d75154d7aefe01788e5dd5adb11e3c943c11;hp=f039a1882eeaa0883f589f7614d130b523f20bd0;hpb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;p=ccan diff --git a/tools/ccanlint/tests/main_header_exists.c b/tools/ccanlint/tests/main_header_exists.c index f039a188..2af9afc0 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,7 +11,6 @@ #include #include #include -#include #include static void check_has_main_header(struct manifest *m, @@ -25,11 +26,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 = {