From d1e6e835c45536c2e98ae5395de8342eb51c329c Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 6 Oct 2016 15:56:57 +0100 Subject: [PATCH] OK removed the cast and fixed the function def in the test This should definitely clear the warning. --- tests/unit/check_readwrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/check_readwrite.c b/tests/unit/check_readwrite.c index 3cb2ba3..2432a13 100644 --- a/tests/unit/check_readwrite.c +++ b/tests/unit/check_readwrite.c @@ -22,7 +22,7 @@ int fd_read_request( int, struct nbd_request_raw *); -int fd_write_reply( int, char *, int ); +int fd_write_reply( int, uint64_t, int ); int marker; @@ -57,7 +57,7 @@ void * responder( void *respond_uncast ) fd_write_reply( sock_fd, wrong_handle, 0 ); } else { - fd_write_reply( sock_fd, (char *) resp->received.handle.w, 0 ); + fd_write_reply( sock_fd, resp->received.handle.w, 0 ); } write( sock_fd, "12345678", 8 ); }