]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/idempotent.c
ccanlint: Add -k option to keep results.
[ccan] / tools / ccanlint / tests / idempotent.c
index e9d7cf56a3533f5d892f12a48f4d226147ba2e0c..95040cf62b09b2f012d77d8b3683f6a9712d79e9 100644 (file)
@@ -112,7 +112,9 @@ static char *report_idem(struct ccan_file *f, char *sofar)
        return sofar;
 }
 
-static void *check_idempotent(struct manifest *m)
+static void *check_idempotent(struct manifest *m,
+                             bool keep,
+                             unsigned int *timeleft)
 {
        struct ccan_file *f;
        char *report = NULL;
@@ -132,7 +134,8 @@ static const char *describe_idempotent(struct manifest *m, void *check_result)
 }
 
 struct ccanlint idempotent = {
-       .name = "Headers are #ifndef/#define idempotent wrapped",
+       .key = "idempotent",
+       .name = "Module headers are #ifndef/#define wrapped",
        .total_score = 1,
        .check = check_idempotent,
        .describe = describe_idempotent,