[dovecot-cvs] dovecot/src/lib-index mail-hash.c,1.23,1.24

tss at dovecot.org tss at dovecot.org
Sat Nov 4 18:48:13 UTC 2006


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

Modified Files:
	mail-hash.c 
Log Message:
Compiler warning fix



Index: mail-hash.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-hash.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- mail-hash.c	16 Sep 2006 13:48:05 -0000	1.23
+++ mail-hash.c	4 Nov 2006 18:48:11 -0000	1.24
@@ -104,8 +104,8 @@
 
 	hash->hdr->corrupted = set ? 1 : 0;
 	if (!hash->mmap_anon) {
-		if (msync(hash->hdr, offset + sizeof(hash->hdr->corrupted),
-			  MS_SYNC) < 0) {
+		if (msync(hash->mmap_base,
+			  offset + sizeof(hash->hdr->corrupted), MS_SYNC) < 0) {
 			mail_hash_set_syscall_error(hash, "msync()");
 			return -1;
 		}



More information about the dovecot-cvs mailing list