Diego Biurrun <[email protected]> writes: > This fixes several warnings of the type: > warning: ignoring return value of ‘write’, declared with attribute > warn_unused_result > --- > tools/cws2fws.c | 9 ++++++--- > tools/pktdumper.c | 3 ++- > 2 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/tools/cws2fws.c b/tools/cws2fws.c > index aa7d690..b73ddd7 100644 > --- a/tools/cws2fws.c > +++ b/tools/cws2fws.c > @@ -69,7 +69,8 @@ int main(int argc, char *argv[]) > > // write out modified header > buf_in[0] = 'F'; > - write(fd_out, &buf_in, 8); > + if (write(fd_out, &buf_in, 8) < 0)
The test should be for < 8 if you don't want to be thorough and deal with EINTR. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
