[dovecot-cvs] dovecot-lda/src/libsieve bc_eval.c, 1.1.1.1, 1.2 sieve.y, 1.2, 1.3

cras at dovecot.org cras at dovecot.org
Wed Oct 12 20:17:59 EEST 2005


Update of /var/lib/cvs/dovecot-lda/src/libsieve
In directory talvi:/tmp/cvs-serv24250/libsieve

Modified Files:
	bc_eval.c sieve.y 
Log Message:
Compiler warning fixes



Index: bc_eval.c
===================================================================
RCS file: /var/lib/cvs/dovecot-lda/src/libsieve/bc_eval.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bc_eval.c	29 Mar 2005 18:37:59 -0000	1.1.1.1
+++ bc_eval.c	12 Oct 2005 17:17:57 -0000	1.2
@@ -733,7 +733,7 @@
 		  const char **errmsg) 
 {
     const char *data;
-    unsigned int ip = 0, ip_max = (bc_len/sizeof(bytecode_input_t));
+    int ip = 0, ip_max = (bc_len/sizeof(bytecode_input_t));
     int res=0;
     int op;
     int version;

Index: sieve.y
===================================================================
RCS file: /var/lib/cvs/dovecot-lda/src/libsieve/sieve.y,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sieve.y	6 Oct 2005 13:45:35 -0000	1.2
+++ sieve.y	12 Oct 2005 17:17:57 -0000	1.3
@@ -1008,8 +1008,8 @@
  */
 static int verify_utf8(char *s)
 {
-    const unsigned char *buf = s;
-    const unsigned char *endbuf = s + strlen(s);
+    const unsigned char *buf = (const unsigned char *)s;
+    const unsigned char *endbuf = buf + strlen(s);
     unsigned char byte2mask = 0x00, c;
     int trailing = 0;  /* trailing (continuation) bytes to follow */
 



More information about the dovecot-cvs mailing list