Commit bddc09dd authored by Cody P Schafer's avatar Cody P Schafer Committed by Rusty Russell

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

CC: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarCody P Schafer <dev@codyps.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 23e96f89
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
* Example: * Example:
* static void print_embedded_names(void) * static void print_embedded_names(void)
* { * {
* unsigned int i, num; * unsigned int i;
* size_t num;
* char **n = autodata_get(names, &num); * char **n = autodata_get(names, &num);
* *
* for (i = 0; i < num; i++) * for (i = 0; i < num; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment