]> git.ozlabs.org Git - ccan/blobdiff - ccan/block_pool/_info
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / block_pool / _info
index d89da5bd1736bc59503d61a46a962210ba9e51ef..e2169765a94e3e8ee05158e401599e139ea10ebe 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * block_pool - An efficient allocator for blocks that don't need to be resized or freed.
@@ -38,9 +38,6 @@
  * Author: Joey Adams <joeyadams3.14159@gmail.com>
  * License: MIT
  * Version: 0.1
- * Ccanlint:
- *     // We actually depend on the LGPL talloc
- *     license_depends_compat FAIL
  */
 int main(int argc, char *argv[])
 {
@@ -53,5 +50,11 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* We actually depend on the LGPL talloc */
+               printf("license_depends_compat FAIL\n");
+               return 0;
+       }
+
        return 1;
 }