Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engines/default/prefix.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ ENGINE_ERROR_CODE prefix_link(hash_item *it, const uint32_t item_size, bool *int
uint32_t nkey = it->nkey;
int prefix_depth = 0;
int i = 0;
char *token;
const char *token;
prefix_t *pt = NULL;
prefix_t_list_elem prefix_list[DEFAULT_PREFIX_MAX_DEPTH];

Expand Down
4 changes: 2 additions & 2 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -12088,7 +12088,7 @@ static inline int get_eflag_from_str(const char *str, unsigned char *eflag)
return -1;
}

static inline int get_bkey_range_from_str(const char *str, bkey_range *bkrange)
static inline int get_bkey_range_from_str(char *str, bkey_range *bkrange)
{
char *delimiter = strstr(str, "..");
if (delimiter != NULL) { /* range */
Expand Down Expand Up @@ -12124,7 +12124,7 @@ static inline int get_bkey_range_from_str(const char *str, bkey_range *bkrange)
return 0;
}

static inline int get_position_range_from_str(const char *str, uint32_t *from_posi, uint32_t *to_posi)
static inline int get_position_range_from_str(char *str, uint32_t *from_posi, uint32_t *to_posi)
{
char *delimiter = strstr(str, "..");
if (delimiter != NULL) { /* range */
Expand Down
4 changes: 2 additions & 2 deletions stats_prefix.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static PREFIX_STATS *do_stats_prefix_insert(const char *prefix, const size_t npr
uint32_t hashval;
#ifdef NESTED_PREFIX
size_t length;
char *token = NULL;
const char *token = NULL;
int i = 0;
int prefix_depth = 0;
PREFIX_STATS_elem prefix_stats_list[PREFIX_MAX_DEPTH];
Expand Down Expand Up @@ -403,7 +403,7 @@ static PREFIX_STATS *stats_prefix_find(const char *key, const size_t nkey)
PREFIX_STATS *pfs;
uint32_t hashval;
size_t length;
char *token = NULL;
const char *token = NULL;
int i = 0;
int prefix_depth = 0;

Expand Down
Loading