utf8: don't allow NUL in decoded strings.
[ccan] / tools / ccanlint / tests / hash_if.c
index 13750e9451629b83b8cf3bce766eeb37bdcc85d3..e647ca2190aa4e25978ff0e4f4b608036156672d 100644 (file)
@@ -1,8 +1,6 @@
 #include <tools/ccanlint/ccanlint.h>
 #include <tools/tools.h>
-#include <ccan/talloc/talloc.h>
 #include <ccan/str/str.h>
-#include <ccan/str_talloc/str_talloc.h>
 #include <ccan/foreach/foreach.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -17,7 +15,8 @@
 #include <ctype.h>
 
 static void check_hash_if(struct manifest *m,
-                         unsigned int *timeleft, struct score *score)
+                         unsigned int *timeleft UNNEEDED,
+                         struct score *score)
 {
        struct list_head *list;
        const char *explanation =