X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fhas_main_header.c;h=dafb41a6e8d71bcf1f6bb5a02a209f6b09b8ce9b;hb=6c579abb882331704795349a7d3c5797bc408562;hp=978bfcb60029ca30e9beb6eae47dcab285043f0f;hpb=8f61c0bccb152b2365baf70deac1e59264d7feb7;p=ccan diff --git a/tools/ccanlint/compulsory_tests/has_main_header.c b/tools/ccanlint/compulsory_tests/has_main_header.c index 978bfcb6..dafb41a6 100644 --- a/tools/ccanlint/compulsory_tests/has_main_header.c +++ b/tools/ccanlint/compulsory_tests/has_main_header.c @@ -12,7 +12,7 @@ #include #include -static void *check_has_main_header(struct manifest *m) +static void *check_has_main_header(struct manifest *m, unsigned int *timeleft) { struct ccan_file *f; @@ -35,7 +35,10 @@ static const char *describe_has_main_header(struct manifest *m, } struct ccanlint has_main_header = { - .name = "No main header file", + .key = "has-main-header", + .name = "Module has main header file", .check = check_has_main_header, .describe = describe_has_main_header, }; + +REGISTER_TEST(has_main_header, NULL);