]> git.ozlabs.org Git - ccan/blobdiff - ccan/strmap/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / strmap / _info
index c128cc27b5c3cbe941cd5e72a4bef2ae2c043f91..eba8fe444ae78e1119e03644ab0f55d29d1d4d23 100644 (file)
  *     license_depends_compat FAIL
  *
  * Example:
+ * #include <ccan/compiler/compiler.h>
  * #include <ccan/strmap/strmap.h>
  * #include <stdio.h>
  *
- * static bool dump(const char *member, size_t value, void *unused)
+ * static bool dump(const char *member, size_t value, void *unused UNNEEDED)
  * {
  *     printf("%s at %zu. ", member, value);
  *     // true means keep going with iteration.
@@ -32,7 +33,7 @@
  *     STRMAP(size_t) map;
  *
  *     strmap_init(&map);
- *     for (i = 1; i < argc; i++)
+ *     for (i = 1; i < (size_t)argc; i++)
  *             // This only adds the first time for this arg.
  *             strmap_add(&map, argv[i], i);
  *