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;
|
||||
ret = cellNetCtlInit();
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("cellNetCtlInit() failed(%x)\n", ret);
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (;;)
|
||||
{
|
||||
ret = cellNetCtlGetState(&state);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("cellNetCtlGetState() failed(%x)\n", ret);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (state == CELL_NET_CTL_STATE_IPObtained)
|
||||
break;
|
||||
|
||||
rarch_sleep(500);
|
||||
timeout_count--;
|
||||
if (index && timeout_count < 0)
|
||||
{
|
||||
printf("if_up_with(%d) timeout\n", index);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#elif defined(GEKKO)
|
||||
char t[16];
|
||||
|
Loading…
x
Reference in New Issue
Block a user