summaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-26 01:09:46 +0000
committerDenis Vlasenko2006-10-26 01:09:46 +0000
commit1457915afcb8fb0697f441dce1697b278d25f4a5 (patch)
tree4f61a7fd5a6a3ebbca053c55dc68b8a3edb7700b /networking/ftpgetput.c
parent940b2e4b734e92cd6dd10c33910439478812d106 (diff)
downloadbusybox-1457915afcb8fb0697f441dce1697b278d25f4a5.zip
busybox-1457915afcb8fb0697f441dce1697b278d25f4a5.tar.gz
xconnect is non-conforming to "xfunc like libc" rule. Fixing
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index aafeaf6..6608e68 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -67,7 +67,7 @@ static int xconnect_ftpdata(ftp_host_info_t *server, const char *buf)
port_num += xatoul_range(buf_ptr + 1, 0, 255) * 256;
server->s_in->sin_port = htons(port_num);
- return xconnect(server->s_in);
+ return xconnect_tcp_v4(server->s_in);
}
static FILE *ftp_login(ftp_host_info_t *server)
@@ -76,7 +76,7 @@ static FILE *ftp_login(ftp_host_info_t *server)
char buf[512];
/* Connect to the command socket */
- control_stream = fdopen(xconnect(server->s_in), "r+");
+ control_stream = fdopen(xconnect_tcp_v4(server->s_in), "r+");
if (control_stream == NULL) {
bb_perror_msg_and_die("cannot open control stream");
}