dovecot-2.0-pigeonhole: Fixed various compile warnings related t...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Mar 22 22:06:24 EET 2011


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/b9c507cfa061
changeset: 1486:b9c507cfa061
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Mar 22 22:08:55 2011 +0100
description:
Fixed various compile warnings related to spurious semicolons and inappropriate variable initialization.

diffstat:

 src/lib-sieve-tool/mail-raw.c                      |  2 +-
 src/lib-sieve/plugins/mailbox/tag-mailbox-create.c |  2 +-
 src/lib-sieve/sieve-result.c                       |  2 +-
 src/testsuite/cmd-test-message.c                   |  4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r 87f3098f33bf -r b9c507cfa061 src/lib-sieve-tool/mail-raw.c
--- a/src/lib-sieve-tool/mail-raw.c	Sat Mar 05 14:48:20 2011 +0100
+++ b/src/lib-sieve-tool/mail-raw.c	Tue Mar 22 22:08:55 2011 +0100
@@ -47,7 +47,7 @@
  */
 
 struct mail_raw_user {
-	struct mail_namespace *ns;;
+	struct mail_namespace *ns;
 	struct mail_user *mail_user;
 };
 
diff -r 87f3098f33bf -r b9c507cfa061 src/lib-sieve/plugins/mailbox/tag-mailbox-create.c
--- a/src/lib-sieve/plugins/mailbox/tag-mailbox-create.c	Sat Mar 05 14:48:20 2011 +0100
+++ b/src/lib-sieve/plugins/mailbox/tag-mailbox-create.c	Tue Mar 22 22:08:55 2011 +0100
@@ -44,7 +44,7 @@
 static bool seff_mailbox_create_pre_execute
 	(const struct sieve_side_effect *seffect, const struct sieve_action *action, 
 		const struct sieve_action_exec_env *aenv, void **se_context, 
-		void *tr_context);;
+		void *tr_context);
 
 const struct sieve_side_effect_def mailbox_create_side_effect = {
 	SIEVE_OBJECT("create", &mailbox_create_operand, 0),
diff -r 87f3098f33bf -r b9c507cfa061 src/lib-sieve/sieve-result.c
--- a/src/lib-sieve/sieve-result.c	Sat Mar 05 14:48:20 2011 +0100
+++ b/src/lib-sieve/sieve-result.c	Tue Mar 22 22:08:55 2011 +0100
@@ -1295,7 +1295,7 @@
 	list->last_effect = NULL;
 	
 	return list;
-};
+}
 
 void sieve_side_effects_list_add
 (struct sieve_side_effects_list *list, const struct sieve_side_effect *seffect)		
diff -r 87f3098f33bf -r b9c507cfa061 src/testsuite/cmd-test-message.c
--- a/src/testsuite/cmd-test-message.c	Sat Mar 05 14:48:20 2011 +0100
+++ b/src/testsuite/cmd-test-message.c	Tue Mar 22 22:08:55 2011 +0100
@@ -299,7 +299,7 @@
 (const struct sieve_runtime_env *renv, sieve_size_t *address)
 {
 	sieve_number_t msg_index;
-	unsigned int is_test = -1;
+	unsigned int is_test = 0;
 	bool result;
 	int ret;
 
@@ -359,7 +359,7 @@
 {
 	string_t *folder;
 	sieve_number_t msg_index;
-	unsigned int is_test = -1;
+	unsigned int is_test = 0;
 	bool result;
 	int ret;
 


More information about the dovecot-cvs mailing list