Browse Source

bolt-gen: fix broken 'exposed subtype' generation

borked in 96bf7aea; fixed here.
pull/2938/head
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
b6d4c372bb
  1. 2
      tools/gen/header_template

2
tools/gen/header_template

@ -70,7 +70,7 @@ struct ${tlv.struct_name()} *${tlv.struct_name()}_new(const tal_t *ctx);
% endfor
void towire_${subtype.name}(u8 **p, const ${subtype.type_name()} *${subtype.name});
% if subtype.is_varsize():
${static}${subtype.type_name()} *
${subtype.type_name()} *
fromwire_${subtype.name}(const tal_t *ctx, const u8 **cursor, size_t *plen);
% else:
void fromwire_${subtype.name}(const u8 **cursor, size_t *plen, ${subtype.type_name()} *${subtype.name});

Loading…
Cancel
Save