]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Compiler warning fix in 32bit systems to previous change
authorTimo Sirainen <tss@iki.fi>
Tue, 11 Nov 2014 03:06:09 +0000 (05:06 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 11 Nov 2014 03:06:09 +0000 (05:06 +0200)
src/lib/file-lock.c

index 1ec858d1b3c2c87ca23b6db4ad9396e0f0e49d14..67e30d0efa74859080a40529bcda38acb36d685d 100644 (file)
@@ -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,