]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/main_header_exists.c
tools: don't assume modules are immediately below ccan/ dir.
[ccan] / tools / ccanlint / tests / main_header_exists.c
index b6150dc844c8232e3e32528e8e01f49fc672bf37..cdb01149d97f245a86262e0d7094b3568fe8adc2 100644 (file)
@@ -13,7 +13,6 @@
 #include <ccan/noerr/noerr.h>
 
 static void check_has_main_header(struct manifest *m,
-                                 bool keep,
                                  unsigned int *timeleft, struct score *score)
 {
        struct ccan_file *f;
@@ -30,7 +29,7 @@ static void check_has_main_header(struct manifest *m,
        "You have no %s/%s.h header file.\n\n"
        "CCAN modules have a name, the same as the directory name.  They're\n"
        "expected to have an interface in the header of the same name.\n",
-                                      m->basename, m->basename);
+                                      m->modname, m->basename);
 }
 
 struct ccanlint main_header_exists = {