ccanlint: fix _info option handling
[ccan] / tools / ccanlint / tests / info_documentation_exists.c
index 108f57f1e935255ff9bf00e48c611e0b68f523b7..9caa966f15ef09cc87d16724d6ba460454b2ec40 100644 (file)
@@ -15,7 +15,7 @@
 #include <ccan/noerr/noerr.h>
 #include <ccan/grab_file/grab_file.h>
 
-extern struct ccanlint info_documentation_exists;
+REGISTER_TEST(info_documentation_exists);
 
 static void create_info_template_doc(struct manifest *m, struct score *score)
 {
@@ -101,4 +101,3 @@ struct ccanlint info_documentation_exists = {
        .needs = "info_exists"
 };
 
-REGISTER_TEST(info_documentation_exists);