dovecot-2.0: Compiler warning fixes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 11 19:48:00 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/e5e74a4f07e9
changeset: 9764:e5e74a4f07e9
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 11 12:47:54 2009 -0400
description:
Compiler warning fixes.

diffstat:

2 files changed, 4 insertions(+), 3 deletions(-)
src/lib-storage/index/dbox/dbox-map.c |    3 ++-
src/lib/ostream-internal.h            |    4 ++--

diffs (27 lines):

diff -r 4168fd6a6a33 -r e5e74a4f07e9 src/lib-storage/index/dbox/dbox-map.c
--- a/src/lib-storage/index/dbox/dbox-map.c	Tue Aug 11 12:47:46 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-map.c	Tue Aug 11 12:47:54 2009 -0400
@@ -877,7 +877,8 @@ dbox_map_get_next_file_id(struct dbox_ma
 	mail_index_get_header_ext(view, map->map_ext_id, &data, &data_size);
 	if (data_size != sizeof(*hdr)) {
 		if (data_size != 0) {
-			dbox_map_set_corrupted(map, "hdr size=%u", data_size);
+			dbox_map_set_corrupted(map, "hdr size=%"PRIuSIZE_T,
+					       data_size);
 			return -1;
 		}
 		/* first file */
diff -r 4168fd6a6a33 -r e5e74a4f07e9 src/lib/ostream-internal.h
--- a/src/lib/ostream-internal.h	Tue Aug 11 12:47:46 2009 -0400
+++ b/src/lib/ostream-internal.h	Tue Aug 11 12:47:54 2009 -0400
@@ -17,8 +17,8 @@ struct ostream_private {
 	ssize_t (*sendv)(struct ostream_private *stream,
 			 const struct const_iovec *iov,
 			 unsigned int iov_count);
-	ssize_t (*write_at)(struct ostream_private *stream,
-			    const void *data, size_t size, uoff_t offset);
+	int (*write_at)(struct ostream_private *stream,
+			const void *data, size_t size, uoff_t offset);
 	off_t (*send_istream)(struct ostream_private *outstream,
 			      struct istream *instream);
 


More information about the dovecot-cvs mailing list