X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Finfo_documentation_exists.c;h=7be0b797532727a6fe1acd8f9af7e1ac52780837;hb=d8c9fdc0e6b70ab4fced949ee6488dc585a711f4;hp=6d914648ca19e3852de76632d3b2fac69523f476;hpb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;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);