Fixup get_deps() callers
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Nov 2008 06:06:04 +0000 (17:06 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Nov 2008 06:06:04 +0000 (17:06 +1100)
tools/create_dep_tar.c
tools/namespacize.c
tools/run_tests.c

index ecf043c56fbddf3df03773deabb5719ca1c62c62..f807ae9b2b5f9199864e5dfb035a04ba7fbacf87 100644 (file)
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
        printf("creating tar ball of \"%s\"\n", argv[1]);       
 
        /* creating tar of the module dependencies */
-       deps = get_deps(talloc_autofree_context(), argv[1]);
+       deps = get_deps(talloc_autofree_context(), argv[1], true);
        if (deps != NULL)
                create_tar(deps, argv[1], argv[2]);
        talloc_free(deps);
@@ -92,7 +92,7 @@ int main(int argc, char *argv[])
        if (dependents != NULL)
                for (i = 0; dependents[i]; i++) {       
                        printf("creating tar ball of \"%s\"\n", dependents[i]); 
-                       deps = get_deps(NULL, dependents[i]);
+                       deps = get_deps(NULL, dependents[i], true);
                        if (deps != NULL)
                                create_tar(deps, dependents[i], argv[2]);                       
                        talloc_free(deps);
index 3fa040282b13022c546f8d3e8ecac452a3fccd47..cbee678c3ecf0d03ff02c59cd7b037778aab0989 100644 (file)
@@ -483,7 +483,7 @@ static void adjust_dir(const char *dir)
 
        verbose("Adjusting %s\n", dir);
        verbose_indent();
-       for (deps = get_deps(parent, dir); *deps; deps++) {
+       for (deps = get_deps(parent, dir, false); *deps; deps++) {
                char *depdir;
                struct adjusted *adj = NULL;
                struct replace *repl;
@@ -521,7 +521,7 @@ static void adjust_dependents(const char *dir)
                if (access(infoc, R_OK) != 0)
                        continue;
 
-               for (deps = get_deps(*file, *file); *deps; deps++) {
+               for (deps = get_deps(*file, *file, false); *deps; deps++) {
                        if (streq(*deps, base))
                                isdep = true;
                }
index 3ae752373de1b0e9c55e61647f82c43bbfcb2271..4506963589f432a5836f704e274eefd85bd1abc7 100644 (file)
@@ -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(talloc_autofree_context(), dir); *deps; deps++) {
+       for (deps = get_deps(talloc_autofree_context(), dir, true); *deps; deps++) {
                if (!strstarts(*deps, "ccan/"))
                        continue;