diff options
author | Denis Vlasenko | 2006-12-23 02:48:44 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-23 02:48:44 +0000 |
commit | 1dc1b37b337030807d7b35b415373593e3f72dda (patch) | |
tree | 84b5f0ae68c3e1f1450b81af96b25c9a74aaf049 /libbb | |
parent | 7e46cf748ead14b4060f0825762fb6393cf89a91 (diff) | |
download | busybox-1dc1b37b337030807d7b35b415373593e3f72dda.zip busybox-1dc1b37b337030807d7b35b415373593e3f72dda.tar.gz |
use xbind, xconnect where appropriate.
small edits to arping
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 b856480..bc06915 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) if (connect(s, s_addr, addrlen) < 0) { if (ENABLE_FEATURE_CLEAN_UP) close(s); if (s_addr->sa_family == AF_INET) - bb_perror_msg_and_die("cannot connect to remote host (%s)", + bb_perror_msg_and_die("%s (%s)", + "cannot connect to remote host", inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr)); bb_perror_msg_and_die("cannot connect to remote host"); } |