X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftrailing_whitespace.c;h=80bf42c49705cc9d0deacd1cfd68db7d9ff8dc05;hp=f5bf5b9fec7f2be5929c25d085926d6b174fd585;hb=fb4c4c3ddc24772f71a64ec02d2c9ddaeb6e9f6b;hpb=f952b88b36e3803370825fb43385f1a42aa24b64 diff --git a/tools/ccanlint/tests/trailing_whitespace.c b/tools/ccanlint/tests/trailing_whitespace.c index f5bf5b9f..80bf42c4 100644 --- a/tools/ccanlint/tests/trailing_whitespace.c +++ b/tools/ccanlint/tests/trailing_whitespace.c @@ -19,7 +19,9 @@ static char *report_on_trailing_whitespace(const char *line) return talloc_asprintf(line, "'%s'", line); } -static void *check_trailing_whitespace(struct manifest *m) +static void *check_trailing_whitespace(struct manifest *m, + bool keep, + unsigned int *timeleft) { char *report; @@ -41,7 +43,7 @@ static const char *describe_trailing_whitespace(struct manifest *m, struct ccanlint trailing_whitespace = { .key = "trailing-whitespace", - .name = "No lines with unnecessary trailing whitespace", + .name = "Module's source code has no trailing whitespace", .total_score = 1, .check = check_trailing_whitespace, .describe = describe_trailing_whitespace,