mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@ -48,6 +50,6 @@ socketpair(int af, int type, int protocol, int pair[2])
|
|||||||
_thread_sys_close(pair[1]);
|
_thread_sys_close(pair[1]);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
return (-1);
|
return (ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user