]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/no_trailing_whitespace.c
ccanlint: remove argument to -k/--keep
[ccan] / tools / ccanlint / tests / no_trailing_whitespace.c
index f046a248cc3e8bcfa818c9f213ca022efa2ad397..5c5cf35bb68769ea1276756ac7a34c99147f5b1d 100644 (file)
@@ -22,7 +22,6 @@ static char *get_trailing_whitespace(const char *line)
 }
 
 static void check_trailing_whitespace(struct manifest *m,
-                                     bool keep,
                                      unsigned int *timeleft,
                                      struct score *score)
 {
@@ -53,7 +52,7 @@ struct ccanlint no_trailing_whitespace = {
        .key = "no_trailing_whitespace",
        .name = "Module's source code has no trailing whitespace",
        .check = check_trailing_whitespace,
-       .needs = ""
+       .needs = "info_exists"
 };