dovecot-2.2: Compiling fix for Sun compilers.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 19 14:29:40 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/46dc61f6acae
changeset: 16303:46dc61f6acae
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 19 14:29:23 2013 +0300
description:
Compiling fix for Sun compilers.
I wish gcc/clang warned about these as well, as sometimes they indicate bugs.
diffstat:
src/imap-urlauth/imap-urlauth-worker.c | 2 +-
src/lib/ioloop.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 999564a5b2a5 -r 46dc61f6acae src/imap-urlauth/imap-urlauth-worker.c
--- a/src/imap-urlauth/imap-urlauth-worker.c Fri Apr 19 00:38:05 2013 +0300
+++ b/src/imap-urlauth/imap-urlauth-worker.c Fri Apr 19 14:29:23 2013 +0300
@@ -941,7 +941,7 @@
{
bool debug;
- debug = getenv("DEBUG");
+ debug = getenv("DEBUG") != NULL;
access_user = access_user != NULL ? access_user : getenv("USER");
if (access_user == NULL && IS_STANDALONE())
access_user = getlogin();
diff -r 999564a5b2a5 -r 46dc61f6acae src/lib/ioloop.c
--- a/src/lib/ioloop.c Fri Apr 19 00:38:05 2013 +0300
+++ b/src/lib/ioloop.c Fri Apr 19 14:29:23 2013 +0300
@@ -663,7 +663,7 @@
bool io_loop_have_ios(struct ioloop *ioloop)
{
- return ioloop->io_files;
+ return ioloop->io_files != NULL;
}
bool io_loop_have_immediate_timeouts(struct ioloop *ioloop)
More information about the dovecot-cvs
mailing list