From aed7abd58646304f1893428f62006ba5518e4111 Mon Sep 17 00:00:00 2001 From: vda Date: Sat, 23 Dec 2006 02:48:44 +0000 Subject: use xbind, xconnect where appropriate. small edits to arping git-svn-id: svn://busybox.net/trunk/busybox@17063 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/xconnect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbb') 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) 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"); } -- cgit v1.2.3-55-g6feb