projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
65fc37d
)
write flags value to return to the rest of program in preparation for flush
author
Alex Bligh <alex@alex.org.uk>
Tue, 17 May 2011 12:19:47 +0000
(13:19 +0100)
committer
Alex Bligh <alex@alex.org.uk>
Tue, 17 May 2011 12:19:47 +0000
(13:19 +0100)
nbd-tester-client.c
patch
|
blob
|
history
diff --git
a/nbd-tester-client.c
b/nbd-tester-client.c
index
9f7714e
..
1b7ec52
100644
(file)
--- 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, &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);
flags = ntohs(flags);
*serverflags = flags;
g_warning("Server flags are: %08x", flags);