X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Frun_tests.c;h=4506963589f432a5836f704e274eefd85bd1abc7;hp=eab42add8dfb06a6cf623181d37a30a7b3811298;hb=44c480c492c4596801261d748c5e3339c30f1f7e;hpb=41069549813a04a2875063cb12e8057f5d54d7f1 diff --git a/tools/run_tests.c b/tools/run_tests.c index eab42add..45069635 100644 --- a/tools/run_tests.c +++ b/tools/run_tests.c @@ -6,7 +6,7 @@ #include #include "ccan/tap/tap.h" #include "ccan/talloc/talloc.h" -#include "ccan/string/string.h" +#include "ccan/str/str.h" #include "tools.h" /* FIXME: Use build bug later. */ @@ -106,7 +106,7 @@ static int build(const char *dir, const char *name, int fail) char *externals = talloc_strdup(name, ""); char **deps; - for (deps = get_deps(objs, dir); *deps; deps++) { + for (deps = get_deps(talloc_autofree_context(), dir, true); *deps; deps++) { if (!strstarts(*deps, "ccan/")) continue;