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

@@ -147,11 +147,12 @@ int main(int argc, char **argv)
u8 *p;
u8 buf[BIGSIZE_MAX_LEN];
const unsigned char npub[crypto_aead_chacha20poly1305_ietf_NPUBBYTES] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
struct tlv_onionmsg_payload *inner, *outer;
struct tlv_onionmsg_payload *outer;
struct tlv_encmsg_tlvs *inner;
int ret;
/* Inner is encrypted */
inner = tlv_onionmsg_payload_new(tmpctx);
inner = tlv_encmsg_tlvs_new(tmpctx);
/* Use scid if they provided one */
if (scids[i]) {
inner->next_short_channel_id