]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/license_depends_compat.c
ccanlint: make _info ported an empty string on success.
[ccan] / tools / ccanlint / tests / license_depends_compat.c
index 6517a7fc5d6973a0bdcad1e06351acc2f0d0e745..10858d9ba5a23c4f7a7ee7104abb8113f0cbfb2b 100644 (file)
@@ -9,9 +9,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <err.h>
-#include <ccan/talloc/talloc.h>
-#include <ccan/str/str.h>
-#include <ccan/str_talloc/str_talloc.h>
 
 static void check_license_depends_compat(struct manifest *m,
                                         unsigned int *timeleft,
@@ -36,7 +33,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;
                }