summaryrefslogtreecommitdiff
path: root/mailbox/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailbox/stream.c')
-rw-r--r--mailbox/stream.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mailbox/stream.c b/mailbox/stream.c
index bdb44daff..79a077ae4 100644
--- a/mailbox/stream.c
+++ b/mailbox/stream.c
@@ -80,7 +80,7 @@ mu_stream_destroy (mu_stream_t *pstream, void *owner)
mu_stream_t stream = *pstream;
if ((stream->flags & MU_STREAM_NO_CHECK) || stream->owner == owner)
{
- mu_stream_close(stream);
+ mu_stream_close (stream);
if (stream->rbuffer.base)
free (stream->rbuffer.base);
@@ -815,6 +815,15 @@ mu_stream_set_flags (mu_stream_t stream, int fl)
}
int
+mu_stream_clr_flags (mu_stream_t stream, int fl)
+{
+ if (stream == NULL)
+ return EINVAL;
+ stream->flags &= ~fl;
+ return 0;
+}
+
+int
mu_stream_set_strerror (mu_stream_t stream,
int (*fp) (mu_stream_t, const char **), void *owner)
{

Return to:

Send suggestions and report system problems to the System administrator.