X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Finfo_exists.c;h=86101aa9eae8cc8cca98ba4d31484b3ac9244d8a;hp=a667c0817e4e0c9cb10dcaa2ba7918f1a8526f2b;hb=dc8042b42500f79f613b1197df6cdf739615a89f;hpb=aabf300e324f7da5134d7ad45afba11225045c24 diff --git a/tools/ccanlint/tests/info_exists.c b/tools/ccanlint/tests/info_exists.c index a667c081..86101aa9 100644 --- a/tools/ccanlint/tests/info_exists.c +++ b/tools/ccanlint/tests/info_exists.c @@ -1,4 +1,6 @@ #include +#include +#include #include #include #include @@ -10,7 +12,6 @@ #include #include #include -#include static void check_has_info(struct manifest *m, unsigned int *timeleft, @@ -21,7 +22,7 @@ static void check_has_info(struct manifest *m, score->score = score->total; add_info_options(m->info_file); } else { - score->error = talloc_strdup(score, + score->error = tal_strdup(score, "You have no _info file.\n\n" "The file _info contains the metadata for a ccan package: things\n" "like the dependencies, the documentation for the package as a whole\n" @@ -63,7 +64,7 @@ static void create_info_template(struct manifest *m, struct score *score) if (!ask("Should I create a template _info file for you?")) return; - filename = talloc_asprintf(m, "%s/%s", m->dir, "_info"); + filename = tal_fmt(m, "%s/%s", m->dir, "_info"); info = fopen(filename, "w"); if (!info) err(1, "Trying to create a template _info in %s", filename);