sic

simple irc client
git clone git://git.suckless.org/sic
Log | Files | Refs | README | LICENSE

commit b3ed5f414fab000e509ae23094befddca2aa6137
parent ca6ba9a64a1332bf2bb4fac4b08030812dc3ff07
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:
Msic.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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)