changeset: 97:e41bd6a4def4
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Sat Feb 21 19:14:13 2009 +0000
files: sic.c
description:
thanks to Matthias-Christian Ott for this hint
diff -r ac6731488d5a -r e41bd6a4def4 sic.c
--- a/sic.c Sat Feb 14 11:53:47 2009 +0000
+++ b/sic.c Sat Feb 21 19:14:13 2009 +0000
@@ -188,7 +188,7 @@
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)
Received on Sat Feb 21 2009 - 19:14:23 UTC
This archive was generated by hypermail 2.2.0 : Sat Feb 21 2009 - 19:24:04 UTC