jmap: fix _info example for 64 bit systems.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:40:08 +0000 (12:10 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:40:08 +0000 (12:10 +1030)
ccan/jmap/_info

index 0047dc052cd087c5c969bc61c9f5d4506866a6eb..966a51a40200f5db67003659f76c1c0668ea5c19 100644 (file)
@@ -25,7 +25,7 @@
  * 
  * struct opt_detail {
  *     bool is_long;
- *     unsigned int length; // == 1 if !is_long.
+ *     size_t length; // == 1 if !is_long.
  * };
  * 
  * // Define map type for int -> argv.
@@ -67,7 +67,7 @@
  *     for (i = jmap_first(arg); i; i = jmap_next(arg,i)) {
  *             char *a = jmap_get(arg, i);
  *             d = jmap_get(opt, a);
- *             printf("  Arg %i ('%s') is a %s of %u chars\n",
+ *             printf("  Arg %i ('%s') is a %s of %zu chars\n",
  *                    i, a,
  *                    d == NULL ? "normal arg"
  *                    : d->is_long ? "long opt"