]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Unconstify mail_cache_register_get_list
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 3 Jan 2017 10:50:58 +0000 (12:50 +0200)
committerGitLab <gitlab@git.dovecot.net>
Fri, 20 Jan 2017 14:23:29 +0000 (16:23 +0200)
This way the result is usable as input for
mail_cache_register_fields.

src/lib-index/mail-cache-fields.c
src/lib-index/mail-cache.h

index 936a7b0c17c33dca8160f577e5412e21ef328920..cd23a42d969c06a4248ea07c400d720a95e4351c 100644 (file)
@@ -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)
 {
index 2cc798934622a39c81bebeabb0bbefdbe9b69f57..3a9cbc521d4b9482b130327de50f27b6dbf630ac 100644 (file)
@@ -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);