[dovecot-cvs] dovecot/src/lib-storage/index index-save.c,1.28,1.29 index-storage.h,1.33,1.34

cras at procontrol.fi cras at procontrol.fi
Wed Mar 5 03:43:18 EET 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv14743/lib-storage/index

Modified Files:
	index-save.c index-storage.h 
Log Message:
Compiler warning fixes.



Index: index-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-save.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- index-save.c	4 Mar 2003 18:51:02 -0000	1.28
+++ index-save.c	5 Mar 2003 01:43:16 -0000	1.29
@@ -22,9 +22,10 @@
 	int failed;
 };
 
-static int write_with_crlf(struct ostream *output, const unsigned char *data,
+static int write_with_crlf(struct ostream *output, const void *v_data,
 			   size_t size)
 {
+	const unsigned char *data = v_data;
 	size_t i, start;
 
 	i_assert(size <= SSIZE_T_MAX);
@@ -56,9 +57,10 @@
 	return size;
 }
 
-static int write_with_lf(struct ostream *output, const unsigned char *data,
+static int write_with_lf(struct ostream *output, const void *v_data,
 			 size_t size)
 {
+	const unsigned char *data = v_data;
 	size_t i, start;
 
 	i_assert(size <= SSIZE_T_MAX);
@@ -139,7 +141,7 @@
 		       struct istream *input, struct ostream *output,
 		       header_callback_t *header_callback, void *context)
 {
-	int (*write_func)(struct ostream *, const unsigned char *, size_t);
+	int (*write_func)(struct ostream *, const void *, size_t);
 	const unsigned char *data;
 	size_t size;
 	ssize_t ret;

Index: index-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- index-storage.h	19 Feb 2003 23:37:23 -0000	1.33
+++ index-storage.h	5 Mar 2003 01:43:16 -0000	1.34
@@ -5,7 +5,7 @@
 #include "mail-index.h"
 #include "index-mail.h"
 
-typedef int write_func_t(struct ostream *, const unsigned char *, size_t);
+typedef int write_func_t(struct ostream *, const void *, size_t);
 
 /* Return -1 = failure, 0 = don't write the header, 1 = write it */
 typedef int header_callback_t(const unsigned char *name, size_t len,




More information about the dovecot-cvs mailing list