Browse Source

jmap: fix _info example for 64 bit systems.

Rusty Russell 14 years ago
parent
commit
c6e453df2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/jmap/_info

+ 2 - 2
ccan/jmap/_info

@@ -25,7 +25,7 @@
  * 
  * 
  * struct opt_detail {
  * struct opt_detail {
  * 	bool is_long;
  * 	bool is_long;
- * 	unsigned int length; // == 1 if !is_long.
+ * 	size_t length; // == 1 if !is_long.
  * };
  * };
  * 
  * 
  * // Define map type for int -> argv.
  * // Define map type for int -> argv.
@@ -67,7 +67,7 @@
  * 	for (i = jmap_first(arg); i; i = jmap_next(arg,i)) {
  * 	for (i = jmap_first(arg); i; i = jmap_next(arg,i)) {
  * 		char *a = jmap_get(arg, i);
  * 		char *a = jmap_get(arg, i);
  * 		d = jmap_get(opt, a);
  * 		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,
  * 		       i, a,
  * 		       d == NULL ? "normal arg"
  * 		       d == NULL ? "normal arg"
  * 		       : d->is_long ? "long opt"
  * 		       : d->is_long ? "long opt"