Minor fix.
* libmailutils/stream/fltstream.c: Implement shutdown method.
Showing
1 changed file
with
8 additions
and
0 deletions
... | @@ -446,6 +446,13 @@ filter_ctl (struct _mu_stream *stream, int code, int opcode, void *ptr) | ... | @@ -446,6 +446,13 @@ filter_ctl (struct _mu_stream *stream, int code, int opcode, void *ptr) |
446 | return 0; | 446 | return 0; |
447 | } | 447 | } |
448 | 448 | ||
449 | static int | ||
450 | filter_shutdown (struct _mu_stream *str, int how) | ||
451 | { | ||
452 | struct _mu_filter_stream *fs = (struct _mu_filter_stream *)str; | ||
453 | return mu_stream_shutdown (fs->transport, how); | ||
454 | } | ||
455 | |||
449 | static const char * | 456 | static const char * |
450 | filter_error_string (struct _mu_stream *stream, int rc) | 457 | filter_error_string (struct _mu_stream *stream, int rc) |
451 | { | 458 | { |
... | @@ -576,6 +583,7 @@ mu_filter_stream_create (mu_stream_t *pflt, | ... | @@ -576,6 +583,7 @@ mu_filter_stream_create (mu_stream_t *pflt, |
576 | fs->stream.done = filter_done; | 583 | fs->stream.done = filter_done; |
577 | if (flags & MU_STREAM_SEEK) | 584 | if (flags & MU_STREAM_SEEK) |
578 | fs->stream.seek = filter_seek; | 585 | fs->stream.seek = filter_seek; |
586 | fs->stream.shutdown = filter_shutdown; | ||
579 | fs->stream.ctl = filter_ctl; | 587 | fs->stream.ctl = filter_ctl; |
580 | fs->stream.wait = filter_wait; | 588 | fs->stream.wait = filter_wait; |
581 | fs->stream.error_string = filter_error_string; | 589 | fs->stream.error_string = filter_error_string; | ... | ... |
-
Please register or sign in to post a comment