X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fdepends_exist.c;fp=tools%2Fccanlint%2Ftests%2Fdepends_exist.c;h=c63d2d2c84d6d85baafdd953a2279bd671199b29;hp=3d50a063a243c857bd79179c21dae0eba118955d;hb=dc8042b42500f79f613b1197df6cdf739615a89f;hpb=aabf300e324f7da5134d7ad45afba11225045c24 diff --git a/tools/ccanlint/tests/depends_exist.c b/tools/ccanlint/tests/depends_exist.c index 3d50a063..c63d2d2c 100644 --- a/tools/ccanlint/tests/depends_exist.c +++ b/tools/ccanlint/tests/depends_exist.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -31,14 +30,12 @@ static bool add_dep(struct manifest *m, { struct stat st; struct manifest *subm; - char *dir = talloc_asprintf(m, "%s/%s", ccan_dir, dep); + char *dir = tal_fmt(m, "%s/%s", ccan_dir, dep); /* FIXME: get_manifest has a tendency to exit. */ if (stat(dir, &st) != 0) { - score->error - = talloc_asprintf(m, - "Could not stat dependency %s: %s", - dir, strerror(errno)); + score->error = tal_fmt(m, "Could not stat dependency %s: %s", + dir, strerror(errno)); return false; } subm = get_manifest(m, dir);