diff options
author | Vladimir Sementsov-Ogievskiy | 2017-08-04 17:14:25 +0200 |
---|---|---|
committer | Eric Blake | 2017-08-30 20:00:38 +0200 |
commit | ab01df1fe21c013d1fd9e3f4c782430741c7dd33 (patch) | |
tree | b65500fefd4e3f01cee811b6beaf87da40930b71 /include | |
parent | nbd/client: fix nbd_opt_go (diff) | |
download | qemu-ab01df1fe21c013d1fd9e3f4c782430741c7dd33.tar.gz qemu-ab01df1fe21c013d1fd9e3f4c782430741c7dd33.tar.xz qemu-ab01df1fe21c013d1fd9e3f4c782430741c7dd33.zip |
nbd/client: refactor nbd_read_eof
Refactor nbd_read_eof to return 1 on success, 0 on eof, when no
data was read and <0 for other cases, because returned size of
read data is not actually used.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20170804151440.320927-3-vsementsov@virtuozzo.com>
[eblake: tweak function comments, rebase to test 083 enhancements]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions