]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/idempotent.c
ccanlint: rename structures to match keys
[ccan] / tools / ccanlint / tests / idempotent.c
index e39cc2ac2e7ba696f16077c8b2d0724ce1f3e9fd..340a0698ac6aecbcb8baf85d231ce4e4d8d978fc 100644 (file)
@@ -193,11 +193,12 @@ static void check_idempotent(struct manifest *m,
        }
 }
 
-struct ccanlint idempotent = {
-       .key = "idempotent",
+struct ccanlint headers_idempotent = {
+       .key = "headers_idempotent",
        .name = "Module headers are #ifndef/#define wrapped",
        .check = check_idempotent,
        .handle = handle_idem,
+       .needs = ""
 };
 
-REGISTER_TEST(idempotent, NULL);
+REGISTER_TEST(headers_idempotent);