Skip to content

Commit

Permalink
lib-index: Unconstify mail_cache_register_get_list
Browse files Browse the repository at this point in the history
This way the result is usable as input for
mail_cache_register_fields.
  • Loading branch information
cmouse authored and GitLab committed Jan 20, 2017
1 parent 90f9822 commit 1211f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-index/mail-cache-fields.c
Expand Up @@ -186,7 +186,7 @@ mail_cache_register_get_field(struct mail_cache *cache, unsigned int field_idx)
return &cache->fields[field_idx].field;
}

const struct mail_cache_field *
struct mail_cache_field *
mail_cache_register_get_list(struct mail_cache *cache, pool_t pool,
unsigned int *count_r)
{
Expand Down
2 changes: 1 addition & 1 deletion src/lib-index/mail-cache.h
Expand Up @@ -59,7 +59,7 @@ mail_cache_register_lookup(struct mail_cache *cache, const char *name);
const struct mail_cache_field *
mail_cache_register_get_field(struct mail_cache *cache, unsigned int field_idx);
/* Returns a list of all registered fields */
const struct mail_cache_field *
struct mail_cache_field *
mail_cache_register_get_list(struct mail_cache *cache, pool_t pool,
unsigned int *count_r);

Expand Down

0 comments on commit 1211f41

Please sign in to comment.