dovecot: compiler warning fixes

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 13 06:00:19 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/409dc8834651
changeset: 5987:409dc8834651
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 13 05:59:46 2007 +0300
description:
compiler warning fixes

diffstat:

3 files changed, 3 insertions(+), 3 deletions(-)
src/deliver/smtp-client.c |    2 +-
src/imap/imap-search.c    |    2 +-
src/login-common/master.c |    2 +-

diffs (36 lines):

diff -r f2b2dc3337cc -r 409dc8834651 src/deliver/smtp-client.c
--- a/src/deliver/smtp-client.c	Fri Jul 13 05:57:09 2007 +0300
+++ b/src/deliver/smtp-client.c	Fri Jul 13 05:59:46 2007 +0300
@@ -48,7 +48,7 @@ smtp_client_run_sendmail(const char *des
 
 	deliver_env_clean();
 
-	(void)execv(sendmail_path, (char **)argv);
+	(void)execv(sendmail_path, (void *)argv);
 	i_fatal("execv(%s) failed: %m", sendmail_path);
 }
 
diff -r f2b2dc3337cc -r 409dc8834651 src/imap/imap-search.c
--- a/src/imap/imap-search.c	Fri Jul 13 05:57:09 2007 +0300
+++ b/src/imap/imap-search.c	Fri Jul 13 05:59:46 2007 +0300
@@ -477,7 +477,7 @@ imap_search_get_arg(struct client_comman
 imap_search_get_arg(struct client_command_context *cmd,
 		    const char *set, bool uid)
 {
-	struct mail_search_arg *search_arg;
+	struct mail_search_arg *search_arg = NULL;
 	const char *error;
 	int ret;
 
diff -r f2b2dc3337cc -r 409dc8834651 src/login-common/master.c
--- a/src/login-common/master.c	Fri Jul 13 05:57:09 2007 +0300
+++ b/src/login-common/master.c	Fri Jul 13 05:59:46 2007 +0300
@@ -247,7 +247,7 @@ static void master_input(void *context _
 		return;
 
 	/* reply is now read */
-	request_handle((struct master_login_reply *) master_buf);
+	request_handle((void *)master_buf);
 	master_pos = 0;
 }
 


More information about the dovecot-cvs mailing list