From 6cfac5d2a6846f6613229c879fce700ead359c75 Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 9 Sep 2020 16:50:52 +0930 Subject: [PATCH] psbt: enforce const on max_witness_len --- common/psbt_open.c | 2 +- common/psbt_open.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/psbt_open.c b/common/psbt_open.c index 71a691048..55b51e79f 100644 --- a/common/psbt_open.c +++ b/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; diff --git a/common/psbt_open.h b/common/psbt_open.h index 776811e13..8c9452881 100644 --- a/common/psbt_open.h +++ b/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