summaryrefslogtreecommitdiff
path: root/libftpconn/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn/open.c')
-rw-r--r--libftpconn/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libftpconn/open.c b/libftpconn/open.c
index cfc93f2d..1a0dfec7 100644
--- a/libftpconn/open.c
+++ b/libftpconn/open.c
@@ -191,7 +191,7 @@ ftp_conn_open (struct ftp_conn *conn)
ftp_addr.sin_addr = *(struct in_addr *)conn->params->addr;
ftp_addr.sin_port = ftp_port;
- if (connect (csock, &ftp_addr, sizeof ftp_addr) < 0)
+ if (connect (csock, (struct sockaddr *)&ftp_addr, sizeof ftp_addr) < 0)
{
err = errno;
close (csock);