From: Timo Sirainen Date: Mon, 30 Mar 2020 14:14:10 +0000 (+0300) Subject: lib-index: Make mail_cache_need_reopen() static X-Git-Tag: 2.3.11.2~394 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c735f6f29030871215a05866f1c1612eac677ccd;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Make mail_cache_need_reopen() static Nothing else besides mail_cache_*lock() needs to be calling it anymore. --- diff --git a/src/lib-index/mail-cache-private.h b/src/lib-index/mail-cache-private.h index 066d222fd8..981cd62caa 100644 --- a/src/lib-index/mail-cache-private.h +++ b/src/lib-index/mail-cache-private.h @@ -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); diff --git a/src/lib-index/mail-cache.c b/src/lib-index/mail-cache.c index 3efc85f568..fa7ae1f472 100644 --- a/src/lib-index/mail-cache.c +++ b/src/lib-index/mail-cache.c @@ -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;