]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/trailing_whitespace.c
ccanlint: rename structures to match keys
[ccan] / tools / ccanlint / tests / trailing_whitespace.c
index 2a301ea8b1c077af8bb369e1d2c64cf893080a8d..a66fd74c3c57a8fdd7f42f352975bbe681366665 100644 (file)
@@ -49,11 +49,12 @@ static void check_trailing_whitespace(struct manifest *m,
        }
 }
 
-struct ccanlint trailing_whitespace = {
+struct ccanlint no_trailing_whitespace = {
        .key = "no_trailing_whitespace",
        .name = "Module's source code has no trailing whitespace",
        .check = check_trailing_whitespace,
+       .needs = ""
 };
 
 
-REGISTER_TEST(trailing_whitespace, NULL);
+REGISTER_TEST(no_trailing_whitespace);