Fix the return value. Oops.
This commit is contained in:
parent
1cec64c4d6
commit
38d7083fcf
@ -29,6 +29,8 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user