X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense_exists.c;h=1ae27dd35266e6a7ca1fd9f55626dae69587a37e;hp=72461bec6d40ab4b3534385dc1c1c3bc932c3c9f;hb=db43894721895d0ec0a8e599440a9897136bfcb6;hpb=7bb7cd58c2d9df126dd6072e5f3bec1eb4dc916b;ds=sidebyside diff --git a/tools/ccanlint/tests/license_exists.c b/tools/ccanlint/tests/license_exists.c index 72461bec..1ae27dd3 100644 --- a/tools/ccanlint/tests/license_exists.c +++ b/tools/ccanlint/tests/license_exists.c @@ -11,7 +11,7 @@ #include #include -struct ccanlint has_license; +REGISTER_TEST(license_exists); static struct doc_section *find_license(const struct manifest *m) { @@ -114,7 +114,7 @@ static void check_has_license(struct manifest *m, score->error = talloc_strdup(score, "LICENSE does not exist"); if (expected) - has_license.handle = handle_license_link; + license_exists.handle = handle_license_link; return; } err(1, "readlink on %s", license); @@ -156,5 +156,3 @@ struct ccanlint license_exists = { .check = check_has_license, .needs = "info_exists" }; - -REGISTER_TEST(license_exists);