commit 6ad2877189712762bd5dfc54eb87674b4779e7ca
parent 4c62c082965bf14b2931f2e4bb970d03faf25ff3
Author: Armin Weigl <tb46305@gmail.com>
Date: Sun, 28 Aug 2022 09:56:10 +0200
net::unix::socketpair: return net::socket instead of io::file
Signed-off-by: Armin Weigl <tb46305@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/unix/socketpair.ha b/net/unix/socketpair.ha
@@ -9,7 +9,7 @@ use io;
// A thin wrapper around socketpair(2) that presumes [[rt::AF_UNIX]] for the
// domain and returns an unnamed pair of sockets of type [[rt::SOCK_STREAM]].
-export fn socketpair(flags: net::sockflags...) ((io::file, io::file) | net::error) = {
+export fn socketpair(flags: net::sockflags...) ((net::socket, net::socket) | net::error) = {
let sv: [2]int = [0...];
// Apply any supplied flags
let f = 0i;