X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccanlint%2Ftests%2Finfo_documentation_exists.c;fp=tools%2Fccanlint%2Ftests%2Finfo_documentation_exists.c;h=7be0b797532727a6fe1acd8f9af7e1ac52780837;hb=0621cac3bf1b5cf4c90de56e0e43b0acde0c94f1;hp=6d914648ca19e3852de76632d3b2fac69523f476;hpb=446eaa5f66db385d89357ba43aa5886f8b906ff0;p=ccan diff --git a/tools/ccanlint/tests/info_documentation_exists.c b/tools/ccanlint/tests/info_documentation_exists.c index 6d914648..7be0b797 100644 --- a/tools/ccanlint/tests/info_documentation_exists.c +++ b/tools/ccanlint/tests/info_documentation_exists.c @@ -15,7 +15,16 @@ #include #include -REGISTER_TEST(info_documentation_exists); +static void check_info_documentation_exists(struct manifest *m, + unsigned int *timeleft, + struct score *score); + +static struct ccanlint info_documentation_exists = { + .key = "info_documentation_exists", + .name = "Module has documentation in _info", + .check = check_info_documentation_exists, + .needs = "info_exists" +}; static void create_info_template_doc(struct manifest *m, struct score *score) { @@ -95,10 +104,5 @@ static void check_info_documentation_exists(struct manifest *m, } } -struct ccanlint info_documentation_exists = { - .key = "info_documentation_exists", - .name = "Module has documentation in _info", - .check = check_info_documentation_exists, - .needs = "info_exists" -}; +REGISTER_TEST(info_documentation_exists);