From 38d7083fcf8a63cf33bb77d63683663478137577 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Tue, 1 Apr 1997 22:52:43 +0000 Subject: [PATCH] Fix the return value. Oops. --- lib/libc_r/uthread/uthread_socketpair.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc_r/uthread/uthread_socketpair.c b/lib/libc_r/uthread/uthread_socketpair.c index 22e40a6d7b7b..2c8761bc8355 100644 --- a/lib/libc_r/uthread/uthread_socketpair.c +++ b/lib/libc_r/uthread/uthread_socketpair.c @@ -29,6 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $Id$ + * */ #include #include @@ -48,6 +50,6 @@ socketpair(int af, int type, int protocol, int pair[2]) _thread_sys_close(pair[1]); ret = -1; } - return (-1); + return (ret); } #endif