]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Make mail_cache_need_reopen() static
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 30 Mar 2020 14:14:10 +0000 (17:14 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Apr 2020 09:41:42 +0000 (12:41 +0300)
Nothing else besides mail_cache_*lock() needs to be calling it anymore.

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

index 066d222fd825dcae0c3018c25dc513d4d5187013..981cd62caa35f9a14d16c22c633ed7884f5697bc 100644 (file)
@@ -258,7 +258,6 @@ int mail_cache_map(struct mail_cache *cache, size_t offset, size_t size,
    (and deleted), -1 if I/O error. */
 int mail_cache_map_all(struct mail_cache *cache);
 void mail_cache_file_close(struct mail_cache *cache);
-bool mail_cache_need_reopen(struct mail_cache *cache);
 int mail_cache_reopen(struct mail_cache *cache);
 int mail_cache_sync_reset_id(struct mail_cache *cache);
 
index 3efc85f5689fa3b8269c0d85ecacb01a79b2a05d..fa7ae1f4727a3e7dce148903a3bdc94837b3c2ac 100644 (file)
@@ -155,7 +155,7 @@ static int mail_cache_try_open(struct mail_cache *cache)
        return 1;
 }
 
-bool mail_cache_need_reopen(struct mail_cache *cache)
+static bool mail_cache_need_reopen(struct mail_cache *cache)
 {
        struct stat st;