mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Fix the return value. Oops.
This commit is contained in:
parent
1cec64c4d6
commit
38d7083fcf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24521
@ -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