[ccan] [PATCH 4/9] autodata: fix example, autodata_get()s second arg must be a (size_t *)
Cody P Schafer
dev at codyps.com
Sat Jun 21 10:46:02 EST 2014
CC: Rusty Russell <rusty at rustcorp.com.au>
Signed-off-by: Cody P Schafer <dev at codyps.com>
---
ccan/autodata/autodata.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ccan/autodata/autodata.h b/ccan/autodata/autodata.h
index 3b1d01b..3f0a71a 100644
--- a/ccan/autodata/autodata.h
+++ b/ccan/autodata/autodata.h
@@ -59,7 +59,8 @@
* Example:
* static void print_embedded_names(void)
* {
- * unsigned int i, num;
+ * unsigned int i;
+ * size_t num;
* char **n = autodata_get(names, &num);
*
* for (i = 0; i < num; i++)
--
2.0.0
More information about the ccan
mailing list