summaryrefslogtreecommitdiff
path: root/libhw
diff options
context:
space:
mode:
Diffstat (limited to 'libhw')
-rw-r--r--libhw/host_net.c1
-rw-r--r--libhw/w5500_ll.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c
index 9d3e97b..e89cd66 100644
--- a/libhw/host_net.c
+++ b/libhw/host_net.c
@@ -40,7 +40,6 @@ LO_IMPLEMENTATION_C(io_closer, struct _hostnet_tcp_conn, hostnet_tcp, static)
LO_IMPLEMENTATION_C(io_bidi_closer, struct _hostnet_tcp_conn, hostnet_tcp, static)
LO_IMPLEMENTATION_C(net_stream_conn, struct _hostnet_tcp_conn, hostnet_tcp, static)
-
LO_IMPLEMENTATION_C(io_closer, struct hostnet_udp_conn, hostnet_udp, static)
LO_IMPLEMENTATION_C(net_packet_conn, struct hostnet_udp_conn, hostnet_udp, static)
diff --git a/libhw/w5500_ll.h b/libhw/w5500_ll.h
index cad20a4..3822ad4 100644
--- a/libhw/w5500_ll.h
+++ b/libhw/w5500_ll.h
@@ -109,8 +109,8 @@ w5500ll_writev(
}
inner[j] = (struct duplex_iovec){
.iov_read_dst = NULL,
- .iov_write_src = iov[i].iov_base+(skipped-skip),
- .iov_len = iov[i].iov_len-(skipped-skip),
+ .iov_write_src = iov[i].iov_base+(skip-skipped),
+ .iov_len = iov[i].iov_len-(skip-skipped),
};
skipped = skip;
} else {