mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Oldschool C please
This commit is contained in:
parent
6048b76c17
commit
34c8b047ea
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue