diff options
| author | Ron Yorston <rmy@pobox.com> | 2015-07-13 12:54:11 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2015-07-13 12:54:11 +0100 |
| commit | b3ef182dbea970c39ddc548706ebd34eb4773ae3 (patch) | |
| tree | 6f5ec575beafeb31017d6691e0860b6930e0c4c3 /libbb | |
| parent | 9fc98788e4fb1ea1f330d44c8b2019b3fe6444f7 (diff) | |
| download | busybox-w32-b3ef182dbea970c39ddc548706ebd34eb4773ae3.tar.gz busybox-w32-b3ef182dbea970c39ddc548706ebd34eb4773ae3.tar.bz2 busybox-w32-b3ef182dbea970c39ddc548706ebd34eb4773ae3.zip | |
ipcalc: enable by default for WIN32
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/xconnect.c | 8 |
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 | ||
| 80 | void FAST_FUNC xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) | 80 | void 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 | } |
