X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcontainer_of%2F_info;h=b1160522edd4fcfd52935d39227d3d19653149ec;hb=2581e470853736444e23e8ccef97a0a38c6236d3;hp=4c25c296036d510a84f2df79c44736004e2200f7;hpb=570c9c555f076e74f46141bb42b5d1d7ac89f632;p=ccan diff --git a/ccan/container_of/_info b/ccan/container_of/_info index 4c25c296..b1160522 100644 --- a/ccan/container_of/_info +++ b/ccan/container_of/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * container_of - routine for upcasting @@ -32,7 +32,14 @@ * printf("my_stuff is %u\n", info->my_stuff); * } * - * int main() + * static void register_timer(struct timer *timer) + * { + * (void)timer; + * (void)my_timer_callback; + * //... + * } + * + * int main(void) * { * struct info info = { .my_stuff = 1 }; * @@ -41,7 +48,8 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: CC0 (Public domain) + * Author: Rusty Russell */ int main(int argc, char *argv[]) {