]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - tools/ccanlint/tests/idempotent.c
ccanlint: cleanup listing code, make print in topo order.
[ccan-lca-2011.git] / tools / ccanlint / tests / idempotent.c
index 0aa7d8b3ae22c5ad741187bb3b7905abefe5e63b..6ed1767606239d7e4f8dde94c7211a52ba44ee65 100644 (file)
@@ -132,8 +132,11 @@ static const char *describe_idempotent(struct manifest *m, void *check_result)
 }
 
 struct ccanlint idempotent = {
+       .key = "idempotent",
        .name = "Headers are #ifndef/#define idempotent wrapped",
        .total_score = 1,
        .check = check_idempotent,
        .describe = describe_idempotent,
 };
+
+REGISTER_TEST(idempotent, NULL);