X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcontainer_of%2F_info;h=cc912320c1ac04fc5b67b19881027db685240085;hp=4c25c296036d510a84f2df79c44736004e2200f7;hb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;hpb=570c9c555f076e74f46141bb42b5d1d7ac89f632 diff --git a/ccan/container_of/_info b/ccan/container_of/_info index 4c25c296..cc912320 100644 --- a/ccan/container_of/_info +++ b/ccan/container_of/_info @@ -26,13 +26,18 @@ * struct timer timer; * }; * + * static void register_timer(struct timer *timer) + * { + * //... + * } + * * static void my_timer_callback(struct timer *timer) * { * struct info *info = container_of(timer, struct info, timer); * printf("my_stuff is %u\n", info->my_stuff); * } * - * int main() + * int main(void) * { * struct info info = { .my_stuff = 1 }; * @@ -41,7 +46,8 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: LGPL (2 or any later version) + * Author: Rusty Russell */ int main(int argc, char *argv[]) {