X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fdepends_exist.c;h=d869cbb7f38cb53a539359e21f8d5f212cfaef07;hb=199023653cd6020218fbc4d0712591fc7ee0c5e1;hp=ff67857f8cdc5a98a89c00e8d948e6e12a6dff87;hpb=60824f8a0f758dc7808eb31cc83434ea78f44ed1;p=ccan diff --git a/tools/ccanlint/tests/depends_exist.c b/tools/ccanlint/tests/depends_exist.c index ff67857f..d869cbb7 100644 --- a/tools/ccanlint/tests/depends_exist.c +++ b/tools/ccanlint/tests/depends_exist.c @@ -35,7 +35,6 @@ static bool add_dep(struct manifest *m, const char *dep, struct score *score) /* FIXME: check this is still true once we reduce features. */ static void check_depends_exist(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { unsigned int i; @@ -56,10 +55,10 @@ static void check_depends_exist(struct manifest *m, } if (safe_mode) - deps = get_safe_ccan_deps(m, m->dir, true); + deps = get_safe_ccan_deps(m, m->dir, "depends", true); else - deps = get_deps(m, m->dir, true, - &m->info_file->compiled[COMPILE_NORMAL]); + deps = get_deps(m, m->dir, "depends", true, + get_or_compile_info); for (i = 0; deps[i]; i++) { if (!strstarts(deps[i], "ccan/"))