diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-23 02:48:44 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-23 02:48:44 +0000 |
commit | aed7abd58646304f1893428f62006ba5518e4111 (patch) | |
tree | 84b5f0ae68c3e1f1450b81af96b25c9a74aaf049 /libbb | |
parent | de971378fdeb54eb214ca58252a8c11b161c3923 (diff) | |
download | busybox-w32-aed7abd58646304f1893428f62006ba5518e4111.tar.gz busybox-w32-aed7abd58646304f1893428f62006ba5518e4111.tar.bz2 busybox-w32-aed7abd58646304f1893428f62006ba5518e4111.zip |
use xbind, xconnect where appropriate.
small edits to arping
git-svn-id: svn://busybox.net/trunk/busybox@17063 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xconnect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index b85648007..bc0691531 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -54,7 +54,8 @@ void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) | |||
54 | if (connect(s, s_addr, addrlen) < 0) { | 54 | if (connect(s, s_addr, addrlen) < 0) { |
55 | if (ENABLE_FEATURE_CLEAN_UP) close(s); | 55 | if (ENABLE_FEATURE_CLEAN_UP) close(s); |
56 | if (s_addr->sa_family == AF_INET) | 56 | if (s_addr->sa_family == AF_INET) |
57 | bb_perror_msg_and_die("cannot connect to remote host (%s)", | 57 | bb_perror_msg_and_die("%s (%s)", |
58 | "cannot connect to remote host", | ||
58 | inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr)); | 59 | inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr)); |
59 | bb_perror_msg_and_die("cannot connect to remote host"); | 60 | bb_perror_msg_and_die("cannot connect to remote host"); |
60 | } | 61 | } |