mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
network.c:
- removed almost unused variable without further use
This commit is contained in:
parent
ef86109460
commit
5e1523e61d
@ -267,13 +267,11 @@ Networking_Core *new_networking(IP ip, uint16_t port)
|
|||||||
if (temp == NULL)
|
if (temp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
sa_family_t family = 0;
|
|
||||||
#ifdef TOX_ENABLE_IPV6
|
#ifdef TOX_ENABLE_IPV6
|
||||||
family = ip.family;
|
temp->family = ip.family;
|
||||||
#else
|
#else
|
||||||
family = AF_INET;
|
temp->family = AF_INET;
|
||||||
#endif
|
#endif
|
||||||
temp->family = family;
|
|
||||||
temp->port = 0;
|
temp->port = 0;
|
||||||
|
|
||||||
/* Initialize our socket. */
|
/* Initialize our socket. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user