]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/ask-password-api.c
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)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:55:08 +0000 (13:55 +0100)
commit665dfe93185a1decdb422f9e5b65a7e39415f129
tree266e268f0345f01e13ffd9b46800beba172f73c1
parent7c59ab4ba11f7ac2afc3dc4f3ba9c97b72c34750
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/core/manager.c
src/libsystemd/sd-login/sd-login.c
src/libudev/libudev-queue.c
src/shared/ask-password-api.c
src/tty-ask-password-agent/tty-ask-password-agent.c