X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccanlint%2Ftests%2Fmodule_links.c;fp=tools%2Fccanlint%2Ftests%2Fmodule_links.c;h=66f8954f4be381d982e8068cf3917b653682e1c8;hb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;hp=0bf9821555d70b53c98f6c767b8b36726b58bc72;hpb=04f453bbedd1eca3e5ab93290304d8193ffdd87f;p=ccan diff --git a/tools/ccanlint/tests/module_links.c b/tools/ccanlint/tests/module_links.c index 0bf98215..66f8954f 100644 --- a/tools/ccanlint/tests/module_links.c +++ b/tools/ccanlint/tests/module_links.c @@ -49,7 +49,6 @@ static char *lib_list(const struct manifest *m) } static void check_use_build(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { char *contents; @@ -57,7 +56,7 @@ static void check_use_build(struct manifest *m, char *basename = talloc_asprintf(m, "%s/example.c", m->dir); int fd; - tmpfile = maybe_temp_file(m, ".c", keep, basename); + tmpfile = temp_file(m, ".c", basename); fd = open(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600); if (fd < 0) @@ -76,7 +75,7 @@ static void check_use_build(struct manifest *m, if (compile_and_link(score, tmpfile, ccan_dir, obj_list(m), compiler, cflags, lib_list(m), - maybe_temp_file(m, "", keep, tmpfile), + temp_file(m, "", tmpfile), &cmdout)) { score->pass = true; score->score = score->total;