mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Cleanups
This commit is contained in:
parent
532c73210b
commit
aa1881febf
@ -213,29 +213,21 @@ int network_interface_up(struct sockaddr_in *target, int index,
|
|||||||
int state, timeout_count = 10;
|
int state, timeout_count = 10;
|
||||||
ret = cellNetCtlInit();
|
ret = cellNetCtlInit();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
|
||||||
printf("cellNetCtlInit() failed(%x)\n", ret);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
ret = cellNetCtlGetState(&state);
|
ret = cellNetCtlGetState(&state);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
|
||||||
printf("cellNetCtlGetState() failed(%x)\n", ret);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
if (state == CELL_NET_CTL_STATE_IPObtained)
|
if (state == CELL_NET_CTL_STATE_IPObtained)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
rarch_sleep(500);
|
rarch_sleep(500);
|
||||||
timeout_count--;
|
timeout_count--;
|
||||||
if (index && timeout_count < 0)
|
if (index && timeout_count < 0)
|
||||||
{
|
|
||||||
printf("if_up_with(%d) timeout\n", index);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
char t[16];
|
char t[16];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user