]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc_link/_info
gitify the tree, especially the web makefile.
[ccan] / ccan / talloc_link / _info
index 8758e07342b2c73296122587a6223701f484a970..9f2bb146f85bb3a411fe7dca04735858a550f16a 100644 (file)
@@ -29,7 +29,7 @@
  *     static struct upcache *cache;
  *     static unsigned int cache_hits = 0;
  *     #define CACHE_SIZE 4
- *     void init_upcase(void)
+ *     static void init_upcase(void)
  *     {
  *             cache = talloc_zero_array(NULL, struct upcache, CACHE_SIZE);
  *     }
@@ -70,7 +70,7 @@
  *     }
  *
  *     // If you want to keep the result, talloc_link it.
- *     const char *get_upcase(const char *str)
+ *     static const char *get_upcase(const char *str)
  *     {
  *             struct upcache *uc = lookup_upcase(str);
  *             if (!uc)
@@ -80,7 +80,7 @@
  *             return uc->upstr;
  *     }
  *
- *     void exit_upcase(void)
+ *     static void exit_upcase(void)
  *     {
  *             talloc_free(cache);
  *             printf("Cache hits: %u\n", cache_hits);
  *             return 0;
  *     }
  *
- * Licence: GPL (2 or any later version)
+ * License: GPL (2 or any later version)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])