]> git.proxmox.com Git - mirror_qemu.git/commit - nbd/client.c
nbd: Move nbd_read_eof() to nbd/client.c
authorKevin Wolf <kwolf@redhat.com>
Mon, 18 Feb 2019 13:38:15 +0000 (14:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 25 Feb 2019 14:03:19 +0000 (15:03 +0100)
commita7b78fc944b20b953d68426b7db2c81fc6a5b5af
tree0801802bba344f07bcc4296b1cb0bb269fd7efbc
parent2a239e6e03ee188f69f159bb5d8baf648a54c9c1
nbd: Move nbd_read_eof() to nbd/client.c

The only caller of nbd_read_eof() is nbd_receive_reply(), so it doesn't
have to live in the header file, but can move next to its caller.

Also add the missing coroutine_fn to the function and its caller.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/block/nbd.h
nbd/client.c
nbd/nbd-internal.h