]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/license_depends_compat.c
tools: don't assume modules are immediately below ccan/ dir.
[ccan] / tools / ccanlint / tests / license_depends_compat.c
index c4f4cb7f98506bfdd40d2f1ffe895d95e71e0f88..f04b4638025a723a87528410778fb1867c52adfa 100644 (file)
@@ -14,7 +14,6 @@
 #include <ccan/str_talloc/str_talloc.h>
 
 static void check_license_depends_compat(struct manifest *m,
-                                        bool keep,
                                         unsigned int *timeleft,
                                         struct score *score)
 {
@@ -37,7 +36,7 @@ static void check_license_depends_compat(struct manifest *m,
                        score_file_error(score, i->info_file, 0,
                                         "Dependency ccan/%s has"
                                         " incompatible license '%s'",
-                                        i->basename,
+                                        i->modname,
                                         licenses[i->license].name);
                        score->pass = false;
                }