]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes.
authorTimo Sirainen <tss@iki.fi>
Tue, 11 Aug 2009 16:47:54 +0000 (12:47 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 11 Aug 2009 16:47:54 +0000 (12:47 -0400)
--HG--
branch : HEAD

src/lib-storage/index/dbox/dbox-map.c
src/lib/ostream-internal.h

index 6f4bae7b5c466db0333d32da0197b652ba4c81e5..57edb5f1141540aafdeb41596ddcb12381dded8f 100644 (file)
@@ -877,7 +877,8 @@ dbox_map_get_next_file_id(struct dbox_map *map, struct mail_index_view *view,
        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 */
index c565edcce4437f286409917d86e062c4fb64cd9f..5637ff7f53e3d223490e32b9aaa451ca0c64837e 100644 (file)
@@ -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);