aboutsummaryrefslogtreecommitdiff
path: root/libbb/xconnect.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/xconnect.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r--libbb/xconnect.c6
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