/* Code to move a ccan module into the ccan_ namespace. */
-#include <err.h>
#include <errno.h>
#include <string.h>
#include <stdbool.h>
#include "ccan/str_talloc/str_talloc.h"
#include "ccan/grab_file/grab_file.h"
#include "ccan/talloc/talloc.h"
+#include "ccan/err/err.h"
#include "tools.h"
static bool verbose = false;
verbose("Adjusting %s\n", dir);
verbose_indent();
- for (deps = get_deps(parent, dir, false, compile_info); *deps; deps++) {
+ for (deps = get_deps(parent, dir, "depends", false, compile_info);
+ *deps;
+ deps++) {
char *depdir;
struct adjusted *adj = NULL;
struct replace *repl;
if (access(info, R_OK) != 0)
continue;
- for (deps = get_deps(*file, *file, false, compile_info);
+ for (deps = get_deps(*file, *file, "depends", false,
+ compile_info);
*deps; deps++) {
if (!strstarts(*deps, "ccan/"))
continue;