X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;h=71f7698601c1f933b62670ae83769d6c47de5cd9;hb=2cd5e81d8beefb95db66f80c6e6d4bbdc989055a;hp=30c8e7bb9207c4daba3cb046e651ff288de21bfe;hpb=92be2eff52133138e4975308f6e731c46b53ace1;p=ccan diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index 30c8e7bb..71f76986 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -310,16 +310,16 @@ const char *tal_name(const tal_t *ptr); * Returns 0 if @ptr has no length property or is NULL, but be aware * that that is also a valid size! */ -#define tal_count(p) (tal_len(p) / sizeof(*p)) +#define tal_count(p) (tal_bytelen(p) / sizeof(*p)) /** - * tal_len - get the count of bytes in a tal_arr. + * tal_bytelen - get the count of bytes in a tal_arr. * @ptr: The tal allocated object array (or NULL) * * Returns 0 if @ptr has no length property or NULL, but be aware that that is * also a valid size! */ -size_t tal_len(const tal_t *ptr); +size_t tal_bytelen(const tal_t *ptr); /** * tal_first - get the first immediate tal object child.