X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_without_features.c;h=999c4eda45663dace4fa759dc891e7a5f8ee3c94;hb=04b63db616a482d6ed0f51a3ede8001415884bab;hp=cc650c24c88fdf1761cc8f089f75c1b213ec2365;hpb=728d98e8e44abcacbe9bfcd89762de2beda72698;p=ccan diff --git a/tools/ccanlint/tests/tests_pass_without_features.c b/tools/ccanlint/tests/tests_pass_without_features.c index cc650c24..999c4eda 100644 --- a/tools/ccanlint/tests/tests_pass_without_features.c +++ b/tools/ccanlint/tests/tests_pass_without_features.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -17,7 +16,6 @@ /* We don't do these under valgrind: too slow! */ static void do_run_tests_no_features(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { @@ -56,9 +54,8 @@ static void run_under_debugger(struct manifest *m, struct score *score) if (!ask("Should I run the first failing test under the debugger?")) return; - command = talloc_asprintf(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", - first->file->compiled - [COMPILE_NOFEAT]); + command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", + first->file->compiled[COMPILE_NOFEAT]); if (system(command)) doesnt_matter(); }