[Nbd] [PATCH 5/5] write flags value to return to the rest of program in preparation for flush
- To: nbd-general@lists.sourceforge.net
- Subject: [Nbd] [PATCH 5/5] write flags value to return to the rest of program in preparation for flush
- From: Alex Bligh <alex@...872...>
- Date: Tue, 17 May 2011 13:34:55 +0100
- Message-id: <1305635695-24058-5-git-send-email-alex@...872...>
- In-reply-to: <1305635695-24058-1-git-send-email-alex@...872...>
- References: <1305635695-24058-1-git-send-email-alex@...872...>
Signed-off-by: Alex Bligh <alex@...872...>
---
nbd-tester-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nbd-tester-client.c b/nbd-tester-client.c
index 9f7714e..1b7ec52 100644
--- a/nbd-tester-client.c
+++ b/nbd-tester-client.c
@@ -194,7 +194,7 @@ int setup_connection(gchar *hostname, int port, gchar* name, CONNECTION_TYPE cty
READ_ALL_ERRCHK(sock, &size, sizeof(size), err_open, "Could not read size: %s", strerror(errno));
size = ntohll(size);
uint16_t flags;
- READ_ALL_ERRCHK(sock, buf, sizeof(uint16_t), err_open, "Could not read flags: %s", strerror(errno));
+ READ_ALL_ERRCHK(sock, &flags, sizeof(uint16_t), err_open, "Could not read flags: %s", strerror(errno));
flags = ntohs(flags);
*serverflags = flags;
g_warning("Server flags are: %08x", flags);
--
1.7.1
Reply to: