From 81ce04eb7b31505d0ff9c03a3148476e15098bd9 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 27 Feb 2019 19:15:31 -0500 Subject: [PATCH] In nxlinkStdio(), return sock on success instead of ret. --- nx/source/runtime/nxlink_stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/runtime/nxlink_stdio.c b/nx/source/runtime/nxlink_stdio.c index a67d1adf..e2b0c3a4 100644 --- a/nx/source/runtime/nxlink_stdio.c +++ b/nx/source/runtime/nxlink_stdio.c @@ -37,5 +37,5 @@ int nxlinkStdio(void) fflush(stderr); dup2(sock, STDERR_FILENO); - return ret; + return sock; }