From: Cody P Schafer Date: Sat, 21 Jun 2014 00:46:02 +0000 (-0400) Subject: autodata: fix example, autodata_get()s second arg must be a (size_t *) X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=bddc09dd41a4918a600ce9fbc5120ae0d2619f7c;hp=23e96f89d54b8d5c4675284bbcd44fba68d8f826 autodata: fix example, autodata_get()s second arg must be a (size_t *) CC: Rusty Russell Signed-off-by: Cody P Schafer Signed-off-by: Rusty Russell --- diff --git a/ccan/autodata/autodata.h b/ccan/autodata/autodata.h index 3b1d01b4..3f0a71a3 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++)