aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 2a96e03dc..442482a8b 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -77,15 +77,15 @@ len_and_sockaddr* FAST_FUNC get_peer_lsa(int fd)
77 return get_lsa(fd, getpeername); 77 return get_lsa(fd, getpeername);
78} 78}
79 79
80void FAST_FUNC xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) 80void FAST_FUNC xconnect(int s, const struct sockaddr *saddr, socklen_t addrlen)
81{ 81{
82 if (connect(s, s_addr, addrlen) < 0) { 82 if (connect(s, saddr, addrlen) < 0) {
83 if (ENABLE_FEATURE_CLEAN_UP) 83 if (ENABLE_FEATURE_CLEAN_UP)
84 close(s); 84 close(s);
85 if (s_addr->sa_family == AF_INET) 85 if (saddr->sa_family == AF_INET)
86 bb_perror_msg_and_die("%s (%s)", 86 bb_perror_msg_and_die("%s (%s)",
87 "can't connect to remote host", 87 "can't connect to remote host",
88 inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr)); 88 inet_ntoa(((struct sockaddr_in *)saddr)->sin_addr));
89 bb_perror_msg_and_die("can't connect to remote host"); 89 bb_perror_msg_and_die("can't connect to remote host");
90 } 90 }
91} 91}