From 60ac365c8dbfce9f481fbfe58d4baae70df889b4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 14 Mar 2016 21:52:08 -0700 Subject: sock-connect return value change. * socket.c (sock_connect): return a useful value rather than t, namely the socket. * txr.1: Documented. --- socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 17949a7c..d7d49b4c 100644 --- a/socket.c +++ b/socket.c @@ -670,7 +670,7 @@ static val sock_connect(val sock, val sockaddr) sock_set_peer(sock, sockaddr); - return t; + return sock; } uw_throwf(socket_error_s, lit("sock-connect: cannot connect ~s"), sock, nao); -- cgit v1.2.3