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:
Rusty Russell
2020-12-03 20:04:03 +10:30
committed by neil saitug
parent c5a2e64fd4
commit dc83e64003
39 changed files with 59 additions and 68 deletions

View File

@@ -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};