s/err1/errx/.
http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME
This commit is contained in:
parent
cd1df6fc62
commit
210c2f7b7c
@ -424,7 +424,7 @@ hints.ai_family = PF_UNSPEC;
|
|||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
error = getaddrinfo("www.kame.net", "http", &hints, &res0);
|
error = getaddrinfo("www.kame.net", "http", &hints, &res0);
|
||||||
if (error) {
|
if (error) {
|
||||||
err1(1, "%s", gai_strerror(error));
|
errx(1, "%s", gai_strerror(error));
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
s = -1;
|
s = -1;
|
||||||
@ -468,7 +468,7 @@ hints.ai_socktype = SOCK_STREAM;
|
|||||||
hints.ai_flags = AI_PASSIVE;
|
hints.ai_flags = AI_PASSIVE;
|
||||||
error = getaddrinfo(NULL, "http", &hints, &res0);
|
error = getaddrinfo(NULL, "http", &hints, &res0);
|
||||||
if (error) {
|
if (error) {
|
||||||
err1(1, "%s", gai_strerror(error));
|
errx(1, "%s", gai_strerror(error));
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
nsock = 0;
|
nsock = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user