X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcontainer_of%2F_info;h=cc912320c1ac04fc5b67b19881027db685240085;hp=2b9da338a70a9abd0bf97594929c2a08a9dee66c;hb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;hpb=faace1758e31f87ee2032cc04c6bb41e3cf8f12e diff --git a/ccan/container_of/_info b/ccan/container_of/_info index 2b9da338..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,7 @@ * 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[])