mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Use pointer to const where possible
This commit is contained in:
parent
c85c2fcfe9
commit
8f76581005
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue