mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Cleanup net_http.c
This commit is contained in:
parent
2fa9f29d93
commit
d4bed832cc
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user