[dovecot-cvs] dovecot/src/plugins/fts-squat squat-trie.c, 1.12, 1.13 squat-uidlist.c, 1.10, 1.11

tss at dovecot.org tss at dovecot.org
Tue Jan 16 17:00:43 UTC 2007


Update of /var/lib/cvs/dovecot/src/plugins/fts-squat
In directory talvi:/tmp/cvs-serv25639/plugins/fts-squat

Modified Files:
	squat-trie.c squat-uidlist.c 
Log Message:
Compiler warning fixes



Index: squat-trie.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-squat/squat-trie.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- squat-trie.c	21 Dec 2006 13:56:50 -0000	1.12
+++ squat-trie.c	16 Jan 2007 17:00:41 -0000	1.13
@@ -724,7 +724,7 @@
 		return -1;
 	}
 
-	if (st.st_size <= sizeof(hdr)) {
+	if (st.st_size <= (off_t)sizeof(hdr)) {
 		memset(&hdr, 0, sizeof(hdr));
 		hdr.version = SQUAT_TRIE_VERSION;
 		hdr.uidvalidity = trie->uidvalidity;

Index: squat-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-squat/squat-uidlist.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- squat-uidlist.c	20 Dec 2006 14:45:39 -0000	1.10
+++ squat-uidlist.c	16 Jan 2007 17:00:41 -0000	1.11
@@ -161,7 +161,7 @@
 	uidlist->dev = st.st_dev;
 	uidlist->ino = st.st_ino;
 
-	if (st.st_size <= sizeof(uidlist->hdr))
+	if (st.st_size <= (off_t)sizeof(uidlist->hdr))
 		return 0;
 
 	if (uidlist->mmap_base != NULL) {



More information about the dovecot-cvs mailing list