]> git.ozlabs.org Git - ccan/blobdiff - ccan/container_of/_info
Makefile: Remove unused test targets
[ccan] / ccan / container_of / _info
index 4c25c296036d510a84f2df79c44736004e2200f7..b1160522edd4fcfd52935d39227d3d19653149ec 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * container_of - routine for upcasting
  *             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 <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
 {