X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_without_features.c;h=999c4eda45663dace4fa759dc891e7a5f8ee3c94;hb=49a1a4366fdcea418582a97cb0bf700373b89868;hp=cbb23baeae0cff8d8b45127adfe13fa13eabfe7d;hpb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;p=ccan diff --git a/tools/ccanlint/tests/tests_pass_without_features.c b/tools/ccanlint/tests/tests_pass_without_features.c index cbb23bae..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 @@ -55,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(); }