mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
Remove tal_len, use tal_count() or tal_bytelen().
tal_count() is used where there's a type, even if it's char or u8, and tal_bytelen() is going to replace tal_len() for clarity: it's only needed where a pointer is void. We shim tal_bytelen() for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
eae9b81099
commit
5cf34d6618
@@ -16,7 +16,7 @@ char *tal_hexstr(const tal_t *ctx, const void *data, size_t len)
|
||||
|
||||
char *tal_hex(const tal_t *ctx, const tal_t *data)
|
||||
{
|
||||
return tal_hexstr(ctx, data, tal_len(data));
|
||||
return tal_hexstr(ctx, data, tal_bytelen(data));
|
||||
}
|
||||
|
||||
u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len)
|
||||
|
||||
Reference in New Issue
Block a user