Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/networking/nbd-client.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/networking/nbd-client.c
r3232 r3621 58 58 char data[124]; 59 59 } nbd_header; 60 struct bug_check { 61 char c[offsetof(struct nbd_header_t, data) == 8+8+8+4 ? 1 : -1]; 62 }; 60 61 BUILD_BUG_ON(offsetof(struct nbd_header_t, data) != 8+8+8+4); 63 62 64 63 // Parse command line stuff (just a stub now) … … 84 83 // Find and connect to server 85 84 sock = create_and_connect_stream_or_die(host, xatou16(port)); 86 setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, &const_int_1, sizeof(const_int_1));85 setsockopt_1(sock, IPPROTO_TCP, TCP_NODELAY); 87 86 88 87 // Log on to the server
Note:
See TracChangeset
for help on using the changeset viewer.