Cleanup net_http.c

This commit is contained in:
twinaphex 2015-01-24 01:48:55 +01:00
parent 2fa9f29d93
commit d4bed832cc

View File

@ -137,12 +137,8 @@ static void net_http_send(int fd, bool * error,
if (thislen <= 0) if (thislen <= 0)
{ {
#ifndef __CELLOS_LV2__
/* FIXME - EWOULDBLOCK is not there on PS3, and this is kinda ugly code anyway.
* Can we get rid of the ugly macro here and do something sensible here? */
if (!isagain(thislen)) if (!isagain(thislen))
continue; continue;
#endif
*error=true; *error=true;
return; return;
@ -172,12 +168,8 @@ static ssize_t net_http_recv(int fd, bool *error,
return bytes; return bytes;
else if (bytes == 0) else if (bytes == 0)
return -1; return -1;
#ifndef __CELLOS_LV2__
/* FIXME - EWOULDBLOCK is not there on PS3, and this is kinda ugly code anyway.
* Can we get rid of the ugly macro here and do something sensible here? */
else if (isagain(bytes)) else if (isagain(bytes))
return 0; return 0;
#endif
*error=true; *error=true;
return -1; return -1;