From 42891f6919efb1ea61f1a21f0098a190ca204267 Mon Sep 17 00:00:00 2001 From: Sunguk Lee Date: Sat, 28 Jul 2018 21:50:59 +0900 Subject: [PATCH] vita: No more use self defined net error code --- vita.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vita.c b/vita.c index 418671f..4f95b56 100644 --- a/vita.c +++ b/vita.c @@ -25,8 +25,6 @@ int sceClibPrintf(const char *fmt, ...); #define SOMAXCONN 128 #define MSG_NOSIGNAL 0 -#define EEINPROGRESS (SCE_NET_ERROR_EINPROGRESS & 0xFF) -#define EEWOULDBLOCK (SCE_NET_ERROR_EWOULDBLOCK & 0xFF) static enet_uint32 timeBase = 0; @@ -249,7 +247,7 @@ enet_socket_connect (ENetSocket socket, const ENetAddress * address) result = connect (socket, (struct sockaddr *) & address -> address, address -> addressLength); if (result < 0) { - if (errno == EEINPROGRESS) + if (errno == EINPROGRESS) return 0; result = -1; } @@ -312,7 +310,7 @@ enet_socket_send (ENetSocket socket, sentLength = sendmsg (socket, & msgHdr, MSG_NOSIGNAL); if (sentLength < 0) { - if (errno == EEWOULDBLOCK) + if (errno == EWOULDBLOCK) return 0; sceClibPrintf("enet_socket_send failed! socket 0x%x error 0x%x\n", socket, sentLength); @@ -348,7 +346,7 @@ enet_socket_receive (ENetSocket socket, recvLength = recvmsg (socket, & msgHdr, MSG_NOSIGNAL); if (recvLength < 0) { - if (errno == EEWOULDBLOCK) + if (errno == EWOULDBLOCK) return 0; sceClibPrintf("enet_socket_receive failed! socket 0x%x recvLength 0x%x\n", socket, recvLength);