psbt: enforce const on max_witness_len

This commit is contained in:
niftynei 2020-09-09 16:50:52 +09:30 committed by Rusty Russell
parent 470f5fabc9
commit 6cfac5d2a6
2 changed files with 2 additions and 2 deletions

View File

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

View File

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