diff options
author | Michael Czigler <37268479+mcpcpc@users.noreply.github.com> | 2020-09-15 13:06:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 13:06:59 -0400 |
commit | 0b0087074ea6d273bc58733280f38465f870c35e (patch) | |
tree | 3880683a3a41c1747b51503a5a1ea717052647ef /kirc.c | |
parent | Merge pull request #19 from vainiovano/master (diff) | |
download | kirc-0b0087074ea6d273bc58733280f38465f870c35e.tar.gz kirc-0b0087074ea6d273bc58733280f38465f870c35e.tar.bz2 kirc-0b0087074ea6d273bc58733280f38465f870c35e.tar.xz kirc-0b0087074ea6d273bc58733280f38465f870c35e.tar.zst kirc-0b0087074ea6d273bc58733280f38465f870c35e.zip |
replace AF_INET with AF_UNSPEC
Diffstat (limited to 'kirc.c')
-rw-r--r-- | kirc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,7 +66,7 @@ static int irc_init() { struct addrinfo *res, hints = { - .ai_family = AF_INET, + .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM }; int gai_status; @@ -93,8 +93,8 @@ irc_init() { freeaddrinfo(res); if (p == NULL) { - fputs("Failed to connect\n", stderr); - return -1; + fputs("Failed to connect\n", stderr); + return -1; } fcntl(conn, F_SETFL, O_NONBLOCK); |