thanks to Matthias-Christian Ott for this hint - sic - simple irc client
(HTM) git clone git://git.suckless.org/sic
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b3ed5f414fab000e509ae23094befddca2aa6137
(DIR) parent ca6ba9a64a1332bf2bb4fac4b08030812dc3ff07
(HTM) Author: Anselm R Garbe <garbeam@gmail.com>
Date: Sat, 21 Feb 2009 19:14:13 +0000
thanks to Matthias-Christian Ott for this hint
Diffstat:
M sic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/sic.c b/sic.c
@@ -188,7 +188,7 @@ main(int argc, char *argv[]) {
hints.ai_socktype = SOCK_STREAM;
if(getaddrinfo(host, port, &hints, &res) != 0)
die("error: cannot resolve hostname '%s'\n", host);
- for(ri = res; r; r = r->ai_next) {
+ for(r = res; r; r = r->ai_next) {
if((srv = socket(r->ai_family, r->ai_socktype, r->ai_protocol)) == -1)
continue;
if(connect(srv, r->ai_addr, r->ai_addrlen) == 0)