X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fobjects_build_without_features.c;h=a32c0f6248346f1c63b7c643450a2c278e51f16f;hp=770dd475a3a6583ce1f60f9b804afb80cac37a58;hb=HEAD;hpb=60824f8a0f758dc7808eb31cc83434ea78f44ed1 diff --git a/tools/ccanlint/tests/objects_build_without_features.c b/tools/ccanlint/tests/objects_build_without_features.c index 770dd475..a32c0f62 100644 --- a/tools/ccanlint/tests/objects_build_without_features.c +++ b/tools/ccanlint/tests/objects_build_without_features.c @@ -1,16 +1,15 @@ #include -#include +#include #include "reduce_features.h" #include "build.h" static void check_objs_build_without_features(struct manifest *m, - bool keep, - unsigned int *timeleft, + unsigned int *timeleft UNNEEDED, struct score *score) { - const char *flags = talloc_asprintf(score, "%s %s", - REDUCE_FEATURES_FLAGS, cflags); - build_objects(m, keep, score, flags, COMPILE_NOFEAT); + const char *flags = tal_fmt(score, "%s %s", + REDUCE_FEATURES_FLAGS, cflags); + build_objects(m, score, flags, COMPILE_NOFEAT); } struct ccanlint objects_build_without_features = {