]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/hash_if.c
ccanlint: remove argument to -k/--keep
[ccan] / tools / ccanlint / tests / hash_if.c
index 35608ef1979c28b86926f9c475c5b6dcab75ac62..13750e9451629b83b8cf3bce766eeb37bdcc85d3 100644 (file)
@@ -17,8 +17,7 @@
 #include <ctype.h>
 
 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 +70,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);