X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense_depends_compat.c;h=10858d9ba5a23c4f7a7ee7104abb8113f0cbfb2b;hp=c4f4cb7f98506bfdd40d2f1ffe895d95e71e0f88;hb=9a8344b2cd849a5506ca5e93bfc30665fb35acab;hpb=7ad50f8e1a15c165f621f01ef1b31f81f90f8141 diff --git a/tools/ccanlint/tests/license_depends_compat.c b/tools/ccanlint/tests/license_depends_compat.c index c4f4cb7f..10858d9b 100644 --- a/tools/ccanlint/tests/license_depends_compat.c +++ b/tools/ccanlint/tests/license_depends_compat.c @@ -9,12 +9,8 @@ #include #include #include -#include -#include -#include static void check_license_depends_compat(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { @@ -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; }