X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fidempotent.c;h=95040cf62b09b2f012d77d8b3683f6a9712d79e9;hp=924f5bea3c7d6b53c424ba7cff6fafe7897aadf2;hb=fb4c4c3ddc24772f71a64ec02d2c9ddaeb6e9f6b;hpb=501b31cddfaa3e8a4374dc84f6f75d07dd2d0abb diff --git a/tools/ccanlint/tests/idempotent.c b/tools/ccanlint/tests/idempotent.c index 924f5bea..95040cf6 100644 --- a/tools/ccanlint/tests/idempotent.c +++ b/tools/ccanlint/tests/idempotent.c @@ -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,10 +134,11 @@ 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, }; -REGISTER_TEST(idempotent, &trailing_whitespace, NULL); +REGISTER_TEST(idempotent, NULL);