]> git.ozlabs.org Git - ccan/blobdiff - ccan/strset/_info
ccan: Correct some poor conventions in _info includes
[ccan] / ccan / strset / _info
index b5df9dfa5dc9e1a1aca0c52b1b3b479017ace365..3f4f7733f23e6b926891835ff859e37133d5e5cf 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * strset - an ordered set of strings
@@ -15,7 +16,7 @@
  * Example:
  *     // Print all words in order.
  *     #include <ccan/strset/strset.h>
- *     #include <ccan/grab_file/grab_file.h>
+ *     #include <ccan/tal/grab_file/grab_file.h>
  *     #include <err.h>
  *     #include <string.h>
  *
@@ -31,7 +32,7 @@
  *             char *file, *word;
  *
  *             strset_init(&words);
- *             file = grab_fd(NULL, 0, NULL);
+ *             file = grab_fd(NULL, 0);
  *             if (!file)
  *                     err(1, "Reading stdin");
  *
@@ -47,7 +48,7 @@
  *     // Given "foo bar" outputs "bar foo "
  *     // Given "foo foo bar" outputs "bar foo "
  *
- * 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