Browse Source

psbt: enforce const on max_witness_len

bump-pyln-proto
niftynei 5 years ago
committed by Rusty Russell
parent
commit
6cfac5d2a6
  1. 2
      common/psbt_open.c
  2. 2
      common/psbt_open.h

2
common/psbt_open.c

@ -351,7 +351,7 @@ void psbt_input_add_max_witness_len(struct wally_psbt_input *input,
}
bool psbt_input_get_max_witness_len(struct wally_psbt_input *input,
bool psbt_input_get_max_witness_len(const struct wally_psbt_input *input,
u16 *max_witness_len)
{
size_t value_len;

2
common/psbt_open.h

@ -127,7 +127,7 @@ void psbt_input_add_max_witness_len(struct wally_psbt_input *input,
*
* Returns false if key not present */
WARN_UNUSED_RESULT bool
psbt_input_get_max_witness_len(struct wally_psbt_input *input,
psbt_input_get_max_witness_len(const struct wally_psbt_input *input,
u16 *max_witness_len);
/* psbt_has_required_fields - Validates psbt field completion

Loading…
Cancel
Save