]> git.ozlabs.org Git - ccan/blobdiff - tools/depends.c
tools: simplify get_safe_ccan_deps
[ccan] / tools / depends.c
index 16c2a5b3de54bbfe32f963958693fe8c851dfbce..efb42004324b5022d4858c2d5f8fe8aad04a0cbf 100644 (file)
@@ -1,5 +1,5 @@
-#include <ccan/talloc/talloc.h>
 #include <ccan/str/str.h>
+#include <ccan/talloc/talloc.h>
 #include <ccan/grab_file/grab_file.h>
 #include <ccan/str_talloc/str_talloc.h>
 #include <ccan/read_write_all/read_write_all.h>
@@ -255,11 +255,11 @@ char **get_deps(const void *ctx, const char *dir,
 }
 
 char **get_safe_ccan_deps(const void *ctx, const char *dir,
-                         bool recurse, char **infofile)
+                         bool recurse)
 {
        if (!recurse) {
                unsigned int num;
-               return get_one_safe_deps(ctx, dir, &num, infofile);
+               return get_one_safe_deps(ctx, dir, &num, NULL);
        }
-       return get_all_deps(ctx, dir, infofile, get_one_safe_deps);
+       return get_all_deps(ctx, dir, NULL, get_one_safe_deps);
 }