]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/license_exists.c
ccanlint: Understand Creative Commons Zero license.
[ccan] / tools / ccanlint / tests / license_exists.c
index 09a9b7e68c7054fe010f19418511663f4021d1ef..53071c6345178641ab017eb5157a7e26ef1ced6b 100644 (file)
@@ -35,6 +35,9 @@ static const char *expected_link(enum license license)
        case LICENSE_MIT:
                return "../../licenses/BSD-MIT";
 
+       case LICENSE_CC0:
+               return "../../licenses/CC0";
+
        default:
                return NULL;
        }
@@ -63,7 +66,6 @@ static void handle_license_link(struct manifest *m, struct score *score)
 extern struct ccanlint license_exists;
 
 static void check_has_license(struct manifest *m,
-                             bool keep,
                              unsigned int *timeleft, struct score *score)
 {
        char buf[PATH_MAX];