summaryrefslogtreecommitdiff
path: root/net9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-19 22:19:53 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-19 22:20:04 -0600
commit978c935f535b9f05dd96b118380156b678ddedd9 (patch)
tree13ae6dc7c90e4f6b7cecc3fe89e33a17c1e7bd66 /net9p.c
parentaa9909958b2ad4ca2d54b457bc7b943729a5b5ed (diff)
fix 9p
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);