Mercurial > dovecot > core-2.2
comparison src/lib/ostream-multiplex.c @ 22603:c6ad67e373f5
lib: ostream-multiplex - ignore flush return value
There's nothing that can be done about it at close() time. Silences static
analyzer warnings.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 10 Oct 2017 15:38:13 +0300 |
parents | f36d7c6d7533 |
children | cb108f786fb4 |
comparison
equal
deleted
inserted
replaced
22602:f36d7c6d7533 | 22603:c6ad67e373f5 |
---|---|
129 static void | 129 static void |
130 o_stream_multiplex_ochannel_close(struct iostream_private *stream, bool close_parent) | 130 o_stream_multiplex_ochannel_close(struct iostream_private *stream, bool close_parent) |
131 { | 131 { |
132 struct multiplex_ochannel *const *channelp; | 132 struct multiplex_ochannel *const *channelp; |
133 struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream; | 133 struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream; |
134 o_stream_flush(&channel->ostream.ostream); | 134 (void)o_stream_flush(&channel->ostream.ostream); |
135 | 135 |
136 channel->closed = TRUE; | 136 channel->closed = TRUE; |
137 if (close_parent) { | 137 if (close_parent) { |
138 array_foreach(&channel->mstream->channels, channelp) | 138 array_foreach(&channel->mstream->channels, channelp) |
139 if (*channelp !=NULL && !(*channelp)->closed) | 139 if (*channelp !=NULL && !(*channelp)->closed) |