Mercurial > dovecot > core-2.2
changeset 899:d3075affded9 HEAD
Misc. compiler warning fixes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 04 Jan 2003 19:34:02 +0200 |
parents | 0d5be52d7131 |
children | 981a359257bb |
files | src/lib-storage/index/index-fetch-section.c src/lib/ioloop-poll.c src/lib/ioloop.c |
diffstat | 3 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-fetch-section.c Sat Jan 04 19:26:29 2003 +0200 +++ b/src/lib-storage/index/index-fetch-section.c Sat Jan 04 19:34:02 2003 +0200 @@ -28,6 +28,8 @@ double-parsing. */ #define MAX_HEADER_BUFFER_SIZE (32*1024) +#define UNSIGNED_CRLF (const unsigned char *) "\r\n" + ImapCacheField index_fetch_body_get_cache(const char *section) { if (*section >= '0' && *section <= '9') @@ -207,7 +209,7 @@ if (!fetch_header_append(ctx, field_start, (size_t) (p-field_start))) return; - if (!fetch_header_append(ctx, "\r\n", 2)) + if (!fetch_header_append(ctx, UNSIGNED_CRLF, 2)) return; field_start = p+1; @@ -220,7 +222,7 @@ return; } - (void)fetch_header_append(ctx, "\r\n", 2); + (void)fetch_header_append(ctx, UNSIGNED_CRLF, 2); } static int fetch_header_fields(IStream *input, const char *section, @@ -247,7 +249,7 @@ shouldn't add it if it wasn't there in the first place. Not very easy to know currently so we'll just do it always, it'll be present in all sane messages anyway.. */ - (void)fetch_header_append(ctx, "\r\n", 2); + (void)fetch_header_append(ctx, UNSIGNED_CRLF, 2); i_assert(ctx->dest_size <= ctx->max_size); i_assert(ctx->dest == NULL || str_len(ctx->dest) == ctx->dest_size);
--- a/src/lib/ioloop-poll.c Sat Jan 04 19:26:29 2003 +0200 +++ b/src/lib/ioloop-poll.c Sat Jan 04 19:34:02 2003 +0200 @@ -188,7 +188,7 @@ if (!io->invalid) { io->invalid = TRUE; i_warning("invalid I/O fd %d, func %p", - io->fd, io->func); + io->fd, (void *) io->func); } continue;
--- a/src/lib/ioloop.c Sat Jan 04 19:26:29 2003 +0200 +++ b/src/lib/ioloop.c Sat Jan 04 19:34:02 2003 +0200 @@ -329,7 +329,8 @@ IO io = ioloop->ios; if (!io->destroyed) { - i_warning("I/O leak: %p (%d)", io->func, io->fd); + i_warning("I/O leak: %p (%d)", + (void *) io->func, io->fd); io_remove(io); } io_destroy(ioloop, io); @@ -339,7 +340,7 @@ Timeout to = ioloop->timeouts; if (!to->destroyed) { - i_warning("Timeout leak: %p", to->func); + i_warning("Timeout leak: %p", (void *) to->func); timeout_remove(to); } timeout_destroy(ioloop, to);