Correct use of IN6ADDR_ANY_INIT initialiser, fixes IPv6 build on Intel ICC.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@105 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-12-16 21:15:15 +00:00
parent d1e13bc526
commit 6711ef7f00
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2c01] [Changes 1.2c01]
* Apply fix from darkfires to allow building with ICC. (caf)
* Show correct message when a socket connection is closed cleanly. (caf) * Show correct message when a socket connection is closed cleanly. (caf)
* Add /FSET WHOIS_CALLERID for +g mode notification on hybrid & ratbox. (caf) * Add /FSET WHOIS_CALLERID for +g mode notification on hybrid & ratbox. (caf)

View File

@@ -456,7 +456,7 @@ int BX_connect_by_number(char *hostn, unsigned short *portnum, int service, int
#endif #endif
struct sockaddr_foobar name; struct sockaddr_foobar name;
#ifdef IPV6 #ifdef IPV6
struct in6_addr any = { IN6ADDR_ANY_INIT }; struct in6_addr any = IN6ADDR_ANY_INIT;
memset(&name, 0, sizeof(struct sockaddr_foobar)); memset(&name, 0, sizeof(struct sockaddr_foobar));
name.sf_family = AF_INET6; name.sf_family = AF_INET6;