diff options
Diffstat (limited to 'networking/nbd-client.c')
-rw-r--r-- | networking/nbd-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nbd-client.c b/networking/nbd-client.c index cadda5261..a601430b6 100644 --- a/networking/nbd-client.c +++ b/networking/nbd-client.c | |||
@@ -83,7 +83,7 @@ int nbdclient_main(int argc, char **argv) | |||
83 | 83 | ||
84 | // Find and connect to server | 84 | // Find and connect to server |
85 | sock = create_and_connect_stream_or_die(host, xatou16(port)); | 85 | sock = create_and_connect_stream_or_die(host, xatou16(port)); |
86 | setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &const_int_1, sizeof(const_int_1)); | 86 | setsockopt_1(sock, IPPROTO_TCP, TCP_NODELAY); |
87 | 87 | ||
88 | // Log on to the server | 88 | // Log on to the server |
89 | xread(sock, &nbd_header, 8+8+8+4 + 124); | 89 | xread(sock, &nbd_header, 8+8+8+4 + 124); |