mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
tools/generate-wire: don't use void * pointers for tlv fromwire.
And fix up the one place which got it wrong. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
c5a2e64fd4
commit
dc83e64003
@@ -257,8 +257,7 @@ ${static}const struct tlv_record_type tlvs_${tlv.name}[] = {
|
||||
% endfor
|
||||
};
|
||||
|
||||
void towire_${tlv.name}(u8 **pptr,
|
||||
const void *record)
|
||||
void towire_${tlv.name}(u8 **pptr, const struct ${tlv.struct_name()} *record)
|
||||
{
|
||||
size_t num_types = ${len(tlv.messages)};
|
||||
const struct tlv_record_type *types = tlvs_${tlv.name};
|
||||
|
||||
Reference in New Issue
Block a user