X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fidempotent.c;h=95040cf62b09b2f012d77d8b3683f6a9712d79e9;hp=e9d7cf56a3533f5d892f12a48f4d226147ba2e0c;hb=fb4c4c3ddc24772f71a64ec02d2c9ddaeb6e9f6b;hpb=d1d6625caf6e9897a4a0479c0e04fee27de5b20e;ds=sidebyside diff --git a/tools/ccanlint/tests/idempotent.c b/tools/ccanlint/tests/idempotent.c index e9d7cf56..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,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,