diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/xconnect.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r-- | libbb/xconnect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index bc6505a40..2945d760f 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -30,7 +30,7 @@ int xconnect(const char *host, const char *port) | |||
30 | hints.ai_socktype = SOCK_STREAM; | 30 | hints.ai_socktype = SOCK_STREAM; |
31 | error = getaddrinfo(host, port, &hints, &res); | 31 | error = getaddrinfo(host, port, &hints, &res); |
32 | if (error||!res) | 32 | if (error||!res) |
33 | perror_msg_and_die(gai_strerror(error)); | 33 | bb_perror_msg_and_die(gai_strerror(error)); |
34 | addr_info=res; | 34 | addr_info=res; |
35 | while (res) { | 35 | while (res) { |
36 | s=socket(res->ai_family, res->ai_socktype, res->ai_protocol); | 36 | s=socket(res->ai_family, res->ai_socktype, res->ai_protocol); |
@@ -50,7 +50,7 @@ int xconnect(const char *host, const char *port) | |||
50 | freeaddrinfo(addr_info); | 50 | freeaddrinfo(addr_info); |
51 | if (error < 0) | 51 | if (error < 0) |
52 | { | 52 | { |
53 | perror_msg_and_die("Unable to connect to remote host (%s)", host); | 53 | bb_perror_msg_and_die("Unable to connect to remote host (%s)", host); |
54 | } | 54 | } |
55 | return s; | 55 | return s; |
56 | #else | 56 | #else |
@@ -72,7 +72,7 @@ int xconnect(const char *host, const char *port) | |||
72 | 72 | ||
73 | if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) | 73 | if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0) |
74 | { | 74 | { |
75 | perror_msg_and_die("Unable to connect to remote host (%s)", host); | 75 | bb_perror_msg_and_die("Unable to connect to remote host (%s)", host); |
76 | } | 76 | } |
77 | return s; | 77 | return s; |
78 | #endif | 78 | #endif |