X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fobjects_build.c;fp=tools%2Fccanlint%2Ftests%2Fobjects_build.c;h=cbb3189513c034094eec05d522c0e78fa247ec0e;hp=8fc11266be6cef94199f4ef30e4de92bf47a6805;hb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;hpb=04f453bbedd1eca3e5ab93290304d8193ffdd87f;ds=sidebyside diff --git a/tools/ccanlint/tests/objects_build.c b/tools/ccanlint/tests/objects_build.c index 8fc11266..cbb31895 100644 --- a/tools/ccanlint/tests/objects_build.c +++ b/tools/ccanlint/tests/objects_build.c @@ -23,7 +23,7 @@ static const char *can_build(struct manifest *m) } void build_objects(struct manifest *m, - bool keep, struct score *score, const char *flags, + struct score *score, const char *flags, enum compile_type ctype) { struct ccan_file *i; @@ -38,7 +38,7 @@ void build_objects(struct manifest *m, char *output; char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name); - i->compiled[ctype] = maybe_temp_file(m, "", keep, fullfile); + i->compiled[ctype] = temp_file(m, "", fullfile); if (!compile_object(score, fullfile, ccan_dir, compiler, flags, i->compiled[ctype], &output)) { talloc_free(i->compiled[ctype]); @@ -62,10 +62,9 @@ void build_objects(struct manifest *m, } static void check_objs_build(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { - build_objects(m, keep, score, cflags, COMPILE_NORMAL); + build_objects(m, score, cflags, COMPILE_NORMAL); } struct ccanlint objects_build = {