]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_accurate.c
ccanlint: list dependencies by key
[ccan] / tools / ccanlint / tests / depends_accurate.c
index 943fa350e09b3a8d6bc8ffc10c990f3e12e4a8d7..a6d3a73a85dd94b6b4289f4c14dd1100b260f80b 100644 (file)
@@ -87,9 +87,10 @@ static void check_depends_accurate(struct manifest *m,
 }
 
 struct ccanlint depends_accurate = {
-       .key = "depends-accurate",
-       .name = "Module's CCAN dependencies are the only ccan files #included",
+       .key = "depends_accurate",
+       .name = "Module's CCAN dependencies are the only CCAN files #included",
        .check = check_depends_accurate,
+       .needs = "depends_exist"
 };
 
-REGISTER_TEST(depends_accurate, &depends_exist, NULL);
+REGISTER_TEST(depends_accurate);