C++ fixes

This commit is contained in:
Gregor Richards 2016-11-29 23:10:19 -05:00
parent 025993231f
commit 2522f68870

View File

@ -63,7 +63,7 @@ void natt_init(void)
if (!dev)
dev = devlist;
descXML = miniwget(dev->descURL, &descXMLsize, 0);
descXML = (char *) miniwget(dev->descURL, &descXMLsize, 0);
if (descXML)
{
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);
/* 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;
if (!net_ifinfo_new(list))
return false;