Mercurial > dovecot > core-2.2
changeset 2072:69cef820735f HEAD
struct iovec->iov_base may not be defined as void*. add casts to avoid
compiler warnings.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 26 May 2004 23:13:12 +0300 |
parents | fd17ca21af0b |
children | a58c51c8f37b |
files | src/lib/ostream-file.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream-file.c Wed May 26 18:35:09 2004 +0300 +++ b/src/lib/ostream-file.c Wed May 26 23:13:12 2004 +0300 @@ -130,7 +130,7 @@ iov->iov_base = NULL; iov->iov_len = 0; } else { - iov->iov_base = (char *) iov->iov_base + size; + iov->iov_base = (void *)((char *)iov->iov_base + size); iov->iov_len -= size; size = 0; } @@ -214,16 +214,16 @@ return 0; if (fstream->head < fstream->tail) { - iov[0].iov_base = fstream->buffer + fstream->head; + iov[0].iov_base = (void *)(fstream->buffer + fstream->head); iov[0].iov_len = fstream->tail - fstream->head; return 1; } else { - iov[0].iov_base = fstream->buffer + fstream->head; + iov[0].iov_base = (void *)(fstream->buffer + fstream->head); iov[0].iov_len = fstream->buffer_size - fstream->head; if (fstream->tail == 0) return 1; else { - iov[1].iov_base = fstream->buffer; + iov[1].iov_base = (void *)fstream->buffer; iov[1].iov_len = fstream->tail; return 2; }