]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Compiler warning fix
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 24 Nov 2016 22:17:45 +0000 (00:17 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 24 Nov 2016 22:17:58 +0000 (00:17 +0200)
src/lib-index/mail-transaction-log.c

index 484900bc57f4e3126d4edd62dff0f043b018c99c..39c19523c67c010547aa875fb4f75807012969b2 100644 (file)
@@ -51,7 +51,7 @@ static void mail_transaction_log_2_unlink_old(struct mail_transaction_log *log)
                return;
        }
 
-       if (st.st_mtime + log->index->log_rotate_log2_stale_secs <= ioloop_time &&
+       if (ioloop_time - st.st_mtime >= (time_t)log->index->log_rotate_log2_stale_secs &&
            !log->index->readonly)
                i_unlink_if_exists(log->filepath2);
 }