From 50f21d54d5ea96703afb466a2d2a7c805aba3f59 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Tue, 1 Dec 2020 07:37:07 -0500 Subject: make consume_fd to return the fd it consumes Signed-off-by: Thanos Makatos --- lib/private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private.h') diff --git a/lib/private.h b/lib/private.h index 2753a20..a2fb3a7 100644 --- a/lib/private.h +++ b/lib/private.h @@ -163,8 +163,8 @@ exec_command(vfu_ctx_t *vfu_ctx, struct vfio_user_header *hdr, size_t size, int process_request(vfu_ctx_t *vfu_ctx); -void -consume_fd(int *fds, size_t index); +int +consume_fd(int *fds, size_t nr_fds, size_t index); #endif /* LIB_VFIO_USER_PRIVATE_H */ -- cgit v1.1