]> git.ozlabs.org Git - ccan/blobdiff - ccan/container_of/_info
license: more changing of licence -> license.
[ccan] / ccan / container_of / _info
index 2b9da338a70a9abd0bf97594929c2a08a9dee66c..cc912320c1ac04fc5b67b19881027db685240085 100644 (file)
  *             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 <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])