]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/info_exists.c
ccanlint: handle nested modules when mentioned in examples.
[ccan] / tools / ccanlint / tests / info_exists.c
index 80edb5aa911b25c868407d3114e97fce44f63bc3..a667c0817e4e0c9cb10dcaa2ba7918f1a8526f2b 100644 (file)
 #include <ccan/talloc/talloc.h>
 
 static void check_has_info(struct manifest *m,
-                          bool keep,
                           unsigned int *timeleft,
                           struct score *score)
 {
        if (m->info_file) {
                score->pass = true;
                score->score = score->total;
+               add_info_options(m->info_file);
        } else {
                score->error = talloc_strdup(score,
        "You have no _info file.\n\n"
@@ -68,7 +68,7 @@ static void create_info_template(struct manifest *m, struct score *score)
        if (!info)
                err(1, "Trying to create a template _info in %s", filename);
 
-       if (fprintf(info, template, m->basename) < 0) {
+       if (fprintf(info, template, m->modname) < 0) {
                unlink_noerr(filename);
                err(1, "Writing template into %s", filename);
        }