[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-file.c, 1.6, 1.7

cras at dovecot.org cras at dovecot.org
Tue Feb 14 20:59:22 EET 2006


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

Modified Files:
	dbox-file.c 
Log Message:
While casting const pointers to something else, the const was often
unneededly dropped out in the middle of casts.



Index: dbox-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- dbox-file.c	5 Feb 2006 12:08:13 -0000	1.6
+++ dbox-file.c	14 Feb 2006 18:59:19 -0000	1.7
@@ -33,8 +33,8 @@
 	}
 
 	/* success */
-	*file_seq_r = *((uint32_t *)data1);
-	*offset_r = *((uint64_t *)data2);
+	*file_seq_r = *((const uint32_t *)data1);
+	*offset_r = *((const uint64_t *)data2);
 	return 1;
 }
 



More information about the dovecot-cvs mailing list