dovecot-2.1-pigeonhole: lib-sieve: fixed -Wunused-but-set-variab...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Mon Dec 5 23:29:16 EET 2011


details:   http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/5c6c99a303da
changeset: 1570:5c6c99a303da
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Mon Dec 05 22:28:54 2011 +0100
description:
lib-sieve: fixed -Wunused-but-set-variable compiler warning in edit-mail.c.

diffstat:

 src/lib-sieve/edit-mail.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r b3bff60a18da -r 5c6c99a303da src/lib-sieve/edit-mail.c
--- a/src/lib-sieve/edit-mail.c	Tue Nov 29 22:47:13 2011 +0100
+++ b/src/lib-sieve/edit-mail.c	Mon Dec 05 22:28:54 2011 +0100
@@ -693,19 +693,19 @@
 (const char *value)
 {
 	string_t *out;
-	unsigned int i, j;
+	unsigned int i;
 
-	for (i = 0; value[i] != '\0'; i++) {
+	for ( i = 0; value[i] != '\0'; i++ ) {
 		if (value[i] == '\r' || value[i] == '\n')
 			break;
 	}
-	if (value[i] == '\0') {
+	if ( value[i] == '\0' ) {
 		return i_strdup(value);
 	}
-	
+
 	out = t_str_new(i + strlen(value+i) + 10);
 	str_append_n(out, value, i);
-	for (j = i; value[i] != '\0'; i++) {
+	for ( ; value[i] != '\0'; i++ ) {
 		if (value[i] == '\n') {
 			i++;
 			if (value[i] == '\0')
@@ -722,7 +722,7 @@
 				str_append_c(out, value[i]);
 		}
 	}
-	
+
 	return i_strndup(str_c(out), str_len(out));
 }
 


More information about the dovecot-cvs mailing list