X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc_link%2F_info;h=dd25c201bc9c080b609cee168c89f808c55f9875;hp=8758e07342b2c73296122587a6223701f484a970;hb=1fe7f55b1efc5deefb20815a03b56c8ef0f6dc53;hpb=ab4a6fd9a3b417456ccd8f1fb976783683ccaa26 diff --git a/ccan/talloc_link/_info b/ccan/talloc_link/_info index 8758e073..dd25c201 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);