utf8: don't allow NUL in decoded strings.
[ccan] / tools / ccanlint / tests / license_file_compat.c
index d1834c06452aec0146199ccc79ca12dda1fd5801..e9273d2443372cab2bd04d642300788cede5515d 100644 (file)
@@ -9,13 +9,10 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <err.h>
-#include <ccan/talloc/talloc.h>
 #include <ccan/str/str.h>
-#include <ccan/str_talloc/str_talloc.h>
 
 static void check_license_file_compat(struct manifest *m,
-                                     bool keep,
-                                     unsigned int *timeleft,
+                                     unsigned int *timeleft UNNEEDED,
                                      struct score *score)
 {
        struct list_head *list;
@@ -24,7 +21,7 @@ static void check_license_file_compat(struct manifest *m,
        if (m->license == LICENSE_UNKNOWN) {
                score->pass = true;
                score->score = score->total = 0;
-               return 0;
+               return;
        }
 
        foreach_ptr(list, &m->c_files, &m->h_files) {