Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/istream-data.c @ 6419:3a960ffa5de8 HEAD
If iostream.close/destroy isn't set by the stream implementation, use a
default no-op function.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 12:51:41 +0300 |
parents | b0096861c390 |
children | a8b515e1a26f |
line wrap: on
line diff
--- a/src/lib/istream-data.c Sun Sep 16 12:43:21 2007 +0300 +++ b/src/lib/istream-data.c Sun Sep 16 12:51:41 2007 +0300 @@ -3,14 +3,6 @@ #include "lib.h" #include "istream-internal.h" -static void _close(struct iostream_private *stream ATTR_UNUSED) -{ -} - -static void _destroy(struct iostream_private *stream ATTR_UNUSED) -{ -} - static ssize_t _read(struct istream_private *stream ATTR_UNUSED) { stream->istream.eof = TRUE; @@ -32,9 +24,6 @@ stream->buffer = data; stream->pos = size; - stream->iostream.close = _close; - stream->iostream.destroy = _destroy; - stream->read = _read; stream->seek = _seek;