summaryrefslogtreecommitdiffstats
path: root/src/kernel/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/net.h')
-rw-r--r--src/kernel/net.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/kernel/net.h b/src/kernel/net.h
index 64816bc..18aa227 100644
--- a/src/kernel/net.h
+++ b/src/kernel/net.h
@@ -23,12 +23,13 @@
#include "dnbd3.h"
-#define init_msghdr(h)\
- h.msg_name = NULL;\
- h.msg_namelen = 0;\
- h.msg_control = NULL;\
- h.msg_controllen = 0;\
- h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL;
+#define init_msghdr(h) do { \
+ h.msg_name = NULL; \
+ h.msg_namelen = 0; \
+ h.msg_control = NULL; \
+ h.msg_controllen = 0; \
+ h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL; \
+ } while (0)
int dnbd3_net_connect(dnbd3_device_t *lo);