X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fhash_if.c;h=78b8a9674e484dd26b3ca4b19a75ae325fcfc488;hp=35608ef1979c28b86926f9c475c5b6dcab75ac62;hb=dc8042b42500f79f613b1197df6cdf739615a89f;hpb=678cd10db6d6b81d97f3b98ea0a54657141632ad diff --git a/tools/ccanlint/tests/hash_if.c b/tools/ccanlint/tests/hash_if.c index 35608ef1..78b8a967 100644 --- a/tools/ccanlint/tests/hash_if.c +++ b/tools/ccanlint/tests/hash_if.c @@ -1,8 +1,6 @@ #include #include -#include #include -#include #include #include #include @@ -17,8 +15,7 @@ #include static void check_hash_if(struct manifest *m, - bool keep, - unsigned int *timeleft, struct score *score) + unsigned int *timeleft, struct score *score) { struct list_head *list; const char *explanation = @@ -71,7 +68,7 @@ struct ccanlint hash_if = { .key = "hash_if", .name = "Features are checked with #if not #ifdef", .check = check_hash_if, - .needs = "" + .needs = "info_exists" }; REGISTER_TEST(hash_if);