From: Timo Sirainen Date: Tue, 11 Nov 2014 03:06:09 +0000 (+0200) Subject: lib: Compiler warning fix in 32bit systems to previous change X-Git-Tag: 2.2.16.rc1~250 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8b37b688ceaa3ed3d40b3ccbdba5bb75cfb64b0;p=thirdparty%2Fdovecot%2Fcore.git lib: Compiler warning fix in 32bit systems to previous change --- diff --git a/src/lib/file-lock.c b/src/lib/file-lock.c index 1ec858d1b3..67e30d0efa 100644 --- a/src/lib/file-lock.c +++ b/src/lib/file-lock.c @@ -151,7 +151,8 @@ static bool err_is_lock_timeout(time_t started, unsigned int timeout_secs) assume it was the alarm. otherwise log EINTR failure. (We most likely don't want to retry EINTR since a signal means somebody wants us to stop blocking). */ - return errno == EINTR && time(NULL) - started + 1 >= timeout_secs; + return errno == EINTR && + (unsigned long)(time(NULL) - started + 1) >= timeout_secs; } static int file_lock_do(int fd, const char *path, int lock_type,