summaryrefslogtreecommitdiff
path: root/net9p.c
diff options
context:
space:
mode:
Diffstat (limited to 'net9p.c')
-rw-r--r--net9p.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net9p.c b/net9p.c
index 13b1a33..6587498 100644
--- a/net9p.c
+++ b/net9p.c
@@ -1,4 +1,5 @@
#include <errno.h>
+#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <error.h>
@@ -19,7 +20,8 @@ void net9p_listen_cr(void *_arg) {
union {
struct sockaddr_in in;
struct sockaddr gen;
- } addr = {0};
+ } addr;
+ memset(&addr, 0, sizeof addr);
addr.in.sin_family = AF_INET;
addr.in.sin_port = htons(9001);