[dovecot-cvs] dovecot/src/lib-storage/index index-search.c, 1.106, 1.107

cras at dovecot.org cras at dovecot.org
Sat Jan 14 17:19:58 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv19091/lib-storage/index

Modified Files:
	index-search.c 
Log Message:
Compiler warning fixes and one real fix for int -> bool changes.



Index: index-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-search.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- index-search.c	13 Jan 2006 20:26:25 -0000	1.106
+++ index-search.c	14 Jan 2006 15:19:56 -0000	1.107
@@ -124,11 +124,12 @@
 static void search_index_arg(struct mail_search_arg *arg, void *context)
 {
 	struct index_search_context *ctx = context;
-	bool found;
 
 	if (arg->type == SEARCH_SEQSET) {
-		found = seqset_contains(arg->value.seqset, ctx->mail->seq);
-		ARG_SET_RESULT(arg, found);
+		if (seqset_contains(arg->value.seqset, ctx->mail->seq))
+			ARG_SET_RESULT(arg, 1);
+		else
+			ARG_SET_RESULT(arg, 0);
 		return;
 	}
 



More information about the dovecot-cvs mailing list