Skip to content

Commit

Permalink
monitor: const annotate type_table and related API
Browse files Browse the repository at this point in the history
  • Loading branch information
evelikov-work authored and Vudentz committed Jan 19, 2024
1 parent 5380e63 commit f8e0270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitor/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ static void print_boolean(uint8_t indent, const uint8_t *data, uint32_t size)

#define SIZES(args...) ((uint8_t[]) { args, 0xff } )

static struct {
static const struct {
uint8_t value;
uint8_t *sizes;
const uint8_t *sizes;
bool recurse;
const char *str;
void (*print) (uint8_t indent, const uint8_t *data, uint32_t size);
Expand Down Expand Up @@ -184,7 +184,7 @@ static const struct {
{ }
};

static bool valid_size(uint8_t size, uint8_t *sizes)
static bool valid_size(uint8_t size, const uint8_t *sizes)
{
int i;

Expand Down

0 comments on commit f8e0270

Please sign in to comment.