From: Rusty Russell Date: Wed, 6 Jan 2010 02:07:55 +0000 (+1030) Subject: Fix getting sub-depends. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=90f958f9feaecf32d2813af48270d9c5431ee377;ds=sidebyside Fix getting sub-depends. --- diff --git a/tools/depends.c b/tools/depends.c index 6c61cca0..4c31e50a 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -181,12 +181,13 @@ get_all_deps(const void *ctx, const char *dir, const char *name, for (i = 0; i < num; i++) { char **newdeps; unsigned int j, newnum; + char *subinfo = NULL; if (!strstarts(deps[i], "ccan/")) continue; newdeps = get_one(ctx, dir, deps[i] + strlen("ccan/"), - &newnum, infofile); + &newnum, &subinfo); /* Should be short, so brute-force out dups. */ for (j = 0; j < newnum; j++) {