X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcontainer_of%2F_info;h=b1160522edd4fcfd52935d39227d3d19653149ec;hb=214086cfafb1f5bf7785a29f4497f3adf196ed8b;hp=2b9da338a70a9abd0bf97594929c2a08a9dee66c;hpb=faace1758e31f87ee2032cc04c6bb41e3cf8f12e;p=ccan diff --git a/ccan/container_of/_info b/ccan/container_of/_info index 2b9da338..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,7 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: CC0 (Public domain) * Author: Rusty Russell */ int main(int argc, char *argv[])