]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/main_header_exists.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / tools / ccanlint / tests / main_header_exists.c
index cdb01149d97f245a86262e0d7094b3568fe8adc2..52a7e43c52b169dd7c3689dfafedfddf99c95a7d 100644 (file)
@@ -1,4 +1,6 @@
 #include <tools/ccanlint/ccanlint.h>
+#include <ccan/tal/tal.h>
+#include <ccan/tal/str/str.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <err.h>
 #include <ccan/str/str.h>
-#include <ccan/talloc/talloc.h>
 #include <ccan/noerr/noerr.h>
 
 static void check_has_main_header(struct manifest *m,
-                                 unsigned int *timeleft, struct score *score)
+                                 unsigned int *timeleft UNNEEDED,
+                                 struct score *score)
 {
        struct ccan_file *f;
 
@@ -25,7 +27,7 @@ static void check_has_main_header(struct manifest *m,
                        return;
                }
        }
-       score->error = talloc_asprintf(score,
+       score->error = tal_fmt(score,
        "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",