Oldschool C please

This commit is contained in:
def 2017-07-22 21:20:15 +02:00
parent 6048b76c17
commit 34c8b047ea

View file

@ -1160,11 +1160,11 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
if(bindaddr.type&NETTYPE_WEBSOCKET_IPV4)
{
int socket = -1;
char addr_str[NETADDR_MAXSTRSIZE];
/* bind, we should check for error */
tmpbindaddr.type = NETTYPE_WEBSOCKET_IPV4;
char addr_str[NETADDR_MAXSTRSIZE];
net_addr_str(&tmpbindaddr, addr_str, sizeof(addr_str), 0);
socket = websocket_create(addr_str, tmpbindaddr.port);