]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/license_depends_compat.c
io/fdpass: add flag to close fd after sending.
[ccan] / tools / ccanlint / tests / license_depends_compat.c
index c4f4cb7f98506bfdd40d2f1ffe895d95e71e0f88..4e73858f1c6146ed39e786e8f06aedb1b6526f81 100644 (file)
@@ -9,13 +9,9 @@
 #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,
-                                        bool keep,
-                                        unsigned int *timeleft,
+                                        unsigned int *timeleft UNNEEDED,
                                         struct score *score)
 {
        struct manifest *i;
@@ -37,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;
                }