mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Cleanups
This commit is contained in:
parent
700dab23d1
commit
dc4ee32620
@ -121,9 +121,7 @@ static int network_interface_down(struct sockaddr_in *target, int *s)
|
|||||||
ret = socketclose(*s);
|
ret = socketclose(*s);
|
||||||
#elif defined(VITA)
|
#elif defined(VITA)
|
||||||
if (net_memory)
|
if (net_memory)
|
||||||
{
|
|
||||||
free(net_memory);
|
free(net_memory);
|
||||||
}
|
|
||||||
sceNetSocketClose(*s);
|
sceNetSocketClose(*s);
|
||||||
#else
|
#else
|
||||||
ret = close(*s);
|
ret = close(*s);
|
||||||
@ -140,17 +138,13 @@ void logger_init (void)
|
|||||||
{
|
{
|
||||||
if (network_interface_up(&target, 1,
|
if (network_interface_up(&target, 1,
|
||||||
PC_DEVELOPMENT_IP_ADDRESS,PC_DEVELOPMENT_UDP_PORT, &g_sid) < 0)
|
PC_DEVELOPMENT_IP_ADDRESS,PC_DEVELOPMENT_UDP_PORT, &g_sid) < 0)
|
||||||
{
|
|
||||||
printf("Could not initialize network logger interface.\n");
|
printf("Could not initialize network logger interface.\n");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void logger_shutdown (void)
|
void logger_shutdown (void)
|
||||||
{
|
{
|
||||||
if (network_interface_down(&target, &g_sid) < 0)
|
if (network_interface_down(&target, &g_sid) < 0)
|
||||||
{
|
|
||||||
printf("Could not deinitialize network logger interface.\n");
|
printf("Could not deinitialize network logger interface.\n");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void logger_send(const char *__format,...)
|
void logger_send(const char *__format,...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user