]> git.ozlabs.org Git - ccan/blobdiff - ccan/strmap/_info
ccan: Correct some poor conventions in _info includes
[ccan] / ccan / strmap / _info
index 9832f80dbcf48c734f42466237352c1e35a951d5..33176b304e8522b9fb5534f773db322b904addf7 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * strmap - an ordered map of strings to values
@@ -9,7 +10,7 @@
  *  http://cr.yp.to/critbit.html
  *  http://github.com/agl/critbit (which this code is based on)
  *
- * License: Public domain (but some dependencies are LGPL!)
+ * License: CC0 (but some dependencies are LGPL!)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  * Ccanlint:
  *     license_depends_compat FAIL
@@ -21,8 +22,8 @@
  * static bool dump(const char *member, size_t value, void *unused)
  * {
  *     printf("%s at %zu. ", member, value);
- *     // false means keep going with iteration.
- *     return false;
+ *     // true means keep going with iteration.
+ *     return true;
  * }
  *
  * int main(int argc, char *argv[])