]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/info_exists.c
tal: fix benchmark/Makefile
[ccan] / tools / ccanlint / tests / info_exists.c
index 5e04bd8d42b6cf91cf04f2ef928e9d940446337e..a667c0817e4e0c9cb10dcaa2ba7918f1a8526f2b 100644 (file)
@@ -13,7 +13,6 @@
 #include <ccan/talloc/talloc.h>
 
 static void check_has_info(struct manifest *m,
-                          bool keep,
                           unsigned int *timeleft,
                           struct score *score)
 {
@@ -69,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);
        }