]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - tools/ccanlint/compulsory_tests/check_build.c
ccanlint: build depends if necessary
[ccan-lca-2011.git] / tools / ccanlint / compulsory_tests / check_build.c
index 830ea91427d4faef8116d686287969ef5215f906..8cd9ed8649bd106e3a9a18db957cb8f05f5652b3 100644 (file)
@@ -24,12 +24,13 @@ static const char *can_build(struct manifest *m)
 static char *obj_list(const struct manifest *m)
 {
        char *list = talloc_strdup(m, "");
-       struct ccan_file *i;
+       struct manifest *i;
 
        /* Other CCAN deps. */
-       list_for_each(&m->dep_dirs, i, list) {
+       list_for_each(&m->deps, i, list) {
                if (i->compiled)
-                       list = talloc_asprintf_append(list, "%s ", i->compiled);
+                       list = talloc_asprintf_append(list, "%s ",
+                                                     i->compiled);
        }
        return list;
 }