mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Initialize in6 correctly
This is technically wrong as it then gets used as an IPv4 sockaddr, but it only needs to be some 0s so this is easier than changing the IPADDR data structure or adding a new API.
This commit is contained in:
parent
beec29c305
commit
7949e4c53f
1 changed files with 4 additions and 0 deletions
|
|
@ -60,7 +60,11 @@ GIOChannel *g_io_channel_new(int handle)
|
|||
|
||||
IPADDR ip4_any = {
|
||||
AF_INET,
|
||||
#if defined(HAVE_IPV6) && defined(IN6ADDR_ANY_INIT)
|
||||
IN6ADDR_ANY_INIT
|
||||
#else
|
||||
{ INADDR_ANY }
|
||||
#endif
|
||||
};
|
||||
|
||||
int net_ip_compare(IPADDR *ip1, IPADDR *ip2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue