mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
C++ fixes
This commit is contained in:
parent
025993231f
commit
2522f68870
@ -63,7 +63,7 @@ void natt_init(void)
|
|||||||
if (!dev)
|
if (!dev)
|
||||||
dev = devlist;
|
dev = devlist;
|
||||||
|
|
||||||
descXML = miniwget(dev->descURL, &descXMLsize, 0);
|
descXML = (char *) miniwget(dev->descURL, &descXMLsize, 0);
|
||||||
if (descXML)
|
if (descXML)
|
||||||
{
|
{
|
||||||
parserootdesc (descXML, descXMLsize, &data);
|
parserootdesc (descXML, descXMLsize, &data);
|
||||||
@ -165,7 +165,7 @@ bool natt_open_port_any(struct natt_status *status, uint16_t port, enum socket_p
|
|||||||
sprintf(port_str, "%hu", port);
|
sprintf(port_str, "%hu", port);
|
||||||
|
|
||||||
/* get our interfaces */
|
/* get our interfaces */
|
||||||
if ((list = calloc(1, sizeof(struct net_ifinfo))) == NULL)
|
if ((list = (struct net_ifinfo *) calloc(1, sizeof(struct net_ifinfo))) == NULL)
|
||||||
return false;
|
return false;
|
||||||
if (!net_ifinfo_new(list))
|
if (!net_ifinfo_new(list))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user