dovecot-2.0: Compiler warning fix.

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 29 01:30:11 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/6d9265a3a620
changeset: 11212:6d9265a3a620
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 29 01:30:08 2010 +0300
description:
Compiler warning fix.

diffstat:

 src/imap/main.c |  4 +++-
 src/pop3/main.c |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 541344dd60a7 -r 6d9265a3a620 src/imap/main.c
--- a/src/imap/main.c	Thu Apr 29 00:23:54 2010 +0300
+++ b/src/imap/main.c	Thu Apr 29 01:30:08 2010 +0300
@@ -271,7 +271,9 @@
 	client_parse_input(client->data, client->auth_req.data_size, &input);
 	msg = t_strdup_printf("%s NO ["IMAP_RESP_CODE_UNAVAILABLE"] %s\r\n",
 			      input.tag, errormsg);
-	(void)write(client->fd, msg, strlen(msg));
+	if (write(client->fd, msg, strlen(msg)) < 0) {
+		/* ignored */
+	}
 }
 
 static void client_connected(const struct master_service_connection *conn)
diff -r 541344dd60a7 -r 6d9265a3a620 src/pop3/main.c
--- a/src/pop3/main.c	Thu Apr 29 00:23:54 2010 +0300
+++ b/src/pop3/main.c	Thu Apr 29 01:30:08 2010 +0300
@@ -167,7 +167,9 @@
 	const char *msg;
 
 	msg = t_strdup_printf("-ERR [IN-USE] %s\r\n", errormsg);
-	(void)write(client->fd, msg, strlen(msg));
+	if (write(client->fd, msg, strlen(msg)) < 0) {
+		/* ignored */
+	}
 }
 
 static void client_connected(const struct master_service_connection *conn)


More information about the dovecot-cvs mailing list