dovecot-2.2: lib: Compiler warning fix in 32bit systems to previ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 11 03:07:22 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/062230bdbc4d
changeset: 18056:062230bdbc4d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 11 05:06:09 2014 +0200
description:
lib: Compiler warning fix in 32bit systems to previous change

diffstat:

 src/lib/file-lock.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 4cc4d7b03b3b -r 062230bdbc4d src/lib/file-lock.c
--- a/src/lib/file-lock.c	Tue Nov 11 03:13:16 2014 +0200
+++ b/src/lib/file-lock.c	Tue Nov 11 05:06:09 2014 +0200
@@ -151,7 +151,8 @@
 	   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,


More information about the dovecot-cvs mailing list