modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / container_of / _info
index 2b9da338a70a9abd0bf97594929c2a08a9dee66c..8580526a40040913736b449d458fe1dd35580efb 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 };
  *