chiark / gitweb /
io-util: make flush_fd() return how many bytes where flushed
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Dec 2017 22:21:09 +0000 (23:21 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:54 +0000 (07:49 +0200)
commitcccf9018aecbbb5f7c31fa9b552622d053f79a45
treef4f92d7677a3a64c8b39c531fa674701b89d2855
parentfd11b8eab60cf2fded2c1e4b499526d0ddf3c1fe
io-util: make flush_fd() return how many bytes where flushed

This is useful so that callers know whether anything at all and how much
was flushed.

This patches through users of this functions to ensure that the return
values > 0 which may be returned now are not propagated in public APIs.

Also, users that ignore the return value are changed to do so explicitly
now.
src/basic/io-util.c
src/libelogind/sd-login/sd-login.c