diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-27 23:22:01 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-27 23:49:37 -0600 |
commit | 88adb90f5e805bea27e619fd5209ef58dbff6fd1 (patch) | |
tree | c3e24877b40ce183f1d72f6e064b0478ecf92207 /cmd/srv9p/main.c | |
parent | 89761191a98f7dce4d1049b9a84c3d645378222a (diff) |
Factor out a libhw
Diffstat (limited to 'cmd/srv9p/main.c')
-rw-r--r-- | cmd/srv9p/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c index a2b437e..6ef2cd3 100644 --- a/cmd/srv9p/main.c +++ b/cmd/srv9p/main.c @@ -7,13 +7,13 @@ #include <error.h> #include <stdio.h> -#include <libcr/coroutine.h> -#include <libmisc/net.h> #include <lib9p/srv.h> +#include <libcr/coroutine.h> +#include <libhw/generic/net.h> +#include <libhw/host_net.h> #include "static9p.h" #include "static.h" -#include "gnet.h" /* configuration **************************************************************/ @@ -91,8 +91,8 @@ static COROUTINE read_cr(void *_srv) { cr_begin(); - struct gnet_tcp_listener listener; - gnet_tcp_listener_init(&listener, 9000); + struct hostnet_tcp_listener listener; + hostnet_tcp_listener_init(&listener, 9000); lib9p_srv_read_cr(srv, &listener); |