From: Aki Tuomi Date: Tue, 3 Jan 2017 10:50:58 +0000 (+0200) Subject: lib-index: Unconstify mail_cache_register_get_list X-Git-Tag: 2.3.0.rc1~2285 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1211f411e0f851fe144e502967d22a8c2f36dee6;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Unconstify mail_cache_register_get_list This way the result is usable as input for mail_cache_register_fields. --- diff --git a/src/lib-index/mail-cache-fields.c b/src/lib-index/mail-cache-fields.c index 936a7b0c17..cd23a42d96 100644 --- a/src/lib-index/mail-cache-fields.c +++ b/src/lib-index/mail-cache-fields.c @@ -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) { diff --git a/src/lib-index/mail-cache.h b/src/lib-index/mail-cache.h index 2cc7989346..3a9cbc521d 100644 --- a/src/lib-index/mail-cache.h +++ b/src/lib-index/mail-cache.h @@ -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);