]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/licenses.c
tools: don't assume modules are immediately below ccan/ dir.
[ccan] / tools / ccanlint / licenses.c
index ff786de88c70f201f17110ac83df342bc063c210..ac62ad3471a77fc376f2377317f56404d839db29 100644 (file)
@@ -208,7 +208,7 @@ struct doc_section *find_license_tag(const struct manifest *m)
        struct doc_section *d;
 
        list_for_each(get_ccan_file_docs(m->info_file), d, list) {
-               if (!streq(d->function, m->basename))
+               if (!streq(d->function, m->modname))
                        continue;
                if (streq(d->type, "license"))
                        return d;