Mercurial > dovecot > core-2.2
changeset 2487:270b0db8d18f HEAD
close/destroy fixes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 23 Aug 2004 22:26:36 +0300 |
parents | e7fa0d07f247 |
children | b2993fe1337b |
files | src/lib/ostream-crlf.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream-crlf.c Mon Aug 23 22:04:52 2004 +0300 +++ b/src/lib/ostream-crlf.c Mon Aug 23 22:26:36 2004 +0300 @@ -20,18 +20,15 @@ static const struct const_iovec cr_iov = { "\r", 1 }; -static void _close(struct _iostream *stream) +static void _close(struct _iostream *stream __attr_unused__) { - struct crlf_ostream *cstream = (struct crlf_ostream *)stream; - - o_stream_close(cstream->output); } static void _destroy(struct _iostream *stream) { struct crlf_ostream *cstream = (struct crlf_ostream *)stream; - o_stream_ref(cstream->output); + o_stream_unref(cstream->output); } static void _set_max_buffer_size(struct _iostream *stream, size_t max_size)