[ccan] [PATCH] autodata: fix example, autodata_get()s second arg must be a (size_t *)

Cody P Schafer dev at codyps.com
Tue Jun 3 11:48:47 EST 2014


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++)
-- 
1.9.3



More information about the ccan mailing list