timer: handle time going backwards.
[ccan] / tools / ccanlint / tests / info_exists.c
index 86101aa9eae8cc8cca98ba4d31484b3ac9244d8a..8f01946f7ff018dfaa01d0acdf6e17d8f2e86cdb 100644 (file)
 #include <ccan/noerr/noerr.h>
 
 static void check_has_info(struct manifest *m,
-                          unsigned int *timeleft,
+                          unsigned int *timeleft UNNEEDED,
                           struct score *score)
 {
        if (m->info_file) {
                score->pass = true;
                score->score = score->total;
-               add_info_options(m->info_file);
+               add_info_options(m);
        } else {
                score->error = tal_strdup(score,
        "You have no _info file.\n\n"
@@ -31,8 +31,9 @@ static void check_has_info(struct manifest *m,
 }
 
 static const char template[] =
-       "#include <string.h>\n"
        "#include \"config.h\"\n"
+       "#include <stdio.h>\n"
+       "#include <string.h>\n"
        "\n"
        "/**\n"
        " * %s - YOUR-ONE-LINE-DESCRIPTION-HERE\n"
@@ -56,7 +57,8 @@ static const char template[] =
        "       return 1;\n"
        "}\n";
 
-static void create_info_template(struct manifest *m, struct score *score)
+static void create_info_template(struct manifest *m,
+                                struct score *score UNNEEDED)
 {
        FILE *info;
        const char *filename;