diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 22:19:53 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 22:20:04 -0600 |
commit | 978c935f535b9f05dd96b118380156b678ddedd9 (patch) | |
tree | 13ae6dc7c90e4f6b7cecc3fe89e33a17c1e7bd66 /net9p.c | |
parent | aa9909958b2ad4ca2d54b457bc7b943729a5b5ed (diff) |
fix 9p
Diffstat (limited to 'net9p.c')
-rw-r--r-- | net9p.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |