diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-19 00:47:08 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-22 16:30:51 +0200 |
commit | 4fdae6c8479f6c1a256bc95099cae2fdc23e9256 (patch) | |
tree | 5698cab1dbf361ad17f6eae065bb8092bc14358e /network | |
parent | 1fc464f6fbecfc5d8ba9f7b98d19e21fb324bfb9 (diff) |
util: minor cleanups for loop_read() and friends
When 0 bytes are to be written, make sure to go into read() at least
once, in order to validate the parameters, such as the passed fd.
Return error on huge values, add a couple of asserts and casts where
appropriate.
Diffstat (limited to 'network')
0 files changed, 0 insertions, 0 deletions