common: add const to accepted_extra_tlvs arg.

It was tlv_fields_valid that wanted a non-const: now that's gone, we
can make this correctly const.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-03-23 13:14:38 +10:30
parent 93caef3584
commit 7147fea2ff
3 changed files with 3 additions and 3 deletions

View file

@ -201,7 +201,7 @@ struct onion_payload *onion_decode(const tal_t *ctx,
const struct route_step *rs,
const struct pubkey *blinding,
const struct secret *blinding_ss,
u64 *accepted_extra_tlvs,
const u64 *accepted_extra_tlvs,
u64 *failtlvtype,
size_t *failtlvpos)
{

View file

@ -69,7 +69,7 @@ struct onion_payload *onion_decode(const tal_t *ctx,
const struct route_step *rs,
const struct pubkey *blinding,
const struct secret *blinding_ss,
u64 *accepted_extra_tlvs,
const u64 *accepted_extra_tlvs,
u64 *failtlvtype,
size_t *failtlvpos);

View file

@ -536,7 +536,7 @@ struct onion_payload *onion_decode(const tal_t *ctx UNNEEDED,
const struct route_step *rs UNNEEDED,
const struct pubkey *blinding UNNEEDED,
const struct secret *blinding_ss UNNEEDED,
u64 *accepted_extra_tlvs UNNEEDED,
const u64 *accepted_extra_tlvs UNNEEDED,
u64 *failtlvtype UNNEEDED,
size_t *failtlvpos UNNEEDED)
{ fprintf(stderr, "onion_decode called!\n"); abort(); }