From 8f76581005fa3f6b1f64e3b46ed6c476a59b4ce1 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 5 Mar 2018 18:03:33 +0100 Subject: [PATCH] Use pointer to const where possible --- common/bolt11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/bolt11.c b/common/bolt11.c index 519cedc29aa1..845667efe614 100644 --- a/common/bolt11.c +++ b/common/bolt11.c @@ -235,7 +235,7 @@ static void decode_h(struct bolt11 *b11, static char *decode_x(struct bolt11 *b11, struct hash_u5 *hu5, u5 **data, size_t *data_len, - size_t data_length, bool *have_x) + size_t data_length, const bool *have_x) { if (*have_x) return unknown_field(b11, hu5, data, data_len, 'x', @@ -257,7 +257,7 @@ static char *decode_x(struct bolt11 *b11, static char *decode_c(struct bolt11 *b11, struct hash_u5 *hu5, u5 **data, size_t *data_len, - size_t data_length, bool *have_c) + size_t data_length, const bool *have_c) { u64 c; if (*have_c)