X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fdepends_build_without_features.c;h=f9f582aff79aada824d8d05465634b20506fd136;hb=bdb8d75154d7aefe01788e5dd5adb11e3c943c11;hp=faa3b21d115b28fc31066d7456f9b0f5e3eefbee;hpb=453fdc02ce54ff965f9971a3bfd0e1a79b6c98f9;p=ccan diff --git a/tools/ccanlint/tests/depends_build_without_features.c b/tools/ccanlint/tests/depends_build_without_features.c index faa3b21d..f9f582af 100644 --- a/tools/ccanlint/tests/depends_build_without_features.c +++ b/tools/ccanlint/tests/depends_build_without_features.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -32,8 +31,7 @@ static void check_depends_built_without_features(struct manifest *m, struct manifest *i; char *flags; - flags = talloc_asprintf(score, "%s %s", cflags, - REDUCE_FEATURES_FLAGS); + flags = tal_fmt(score, "%s %s", cflags, REDUCE_FEATURES_FLAGS); foreach_ptr(list, &m->deps, &m->test_deps) { list_for_each(list, i, list) { @@ -41,12 +39,11 @@ static void check_depends_built_without_features(struct manifest *m, COMPILE_NOFEAT); if (errstr) { - score->error = talloc_asprintf(score, - "Dependency %s" - " did not" - " build:\n%s", - i->basename, - errstr); + score->error = tal_fmt(score, + "Dependency %s" + " did not build:\n%s", + i->modname, + errstr); return; } }