Skip to content

Commit

Permalink
Use pointer to const where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and rustyrussell committed Mar 16, 2018
1 parent c85c2fc commit 8f76581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/bolt11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)
Expand Down

0 comments on commit 8f76581

Please sign in to comment.