X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc_link%2F_info;h=9f2bb146f85bb3a411fe7dca04735858a550f16a;hp=fe66c24e597ff1db63bce473d070a8ac04d42a4e;hb=371a31d946c1055e8b7f7d9cec2b7f617206aeaf;hpb=ac0e87d7ecf790c187ce3c5d837b971fdd016b57 diff --git a/ccan/talloc_link/_info b/ccan/talloc_link/_info index fe66c24e..9f2bb146 100644 --- a/ccan/talloc_link/_info +++ b/ccan/talloc_link/_info @@ -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); @@ -129,7 +129,8 @@ * return 0; * } * - * Licence: GPL (2 or any later version) + * License: GPL (2 or any later version) + * Author: Rusty Russell */ int main(int argc, char *argv[]) {