summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-05-12 16:33:44 +0000
committerMiles Bader <miles@gnu.org>1997-05-12 16:33:44 +0000
commitc9d1b4b8ca63ac5dc3207ec5de54132381a858d0 (patch)
tree4cb21af743e949990daabffc12ae80a1ef42238d
parent98678b4cfed68ff22f828d3da128e63ae0fd0a2a (diff)
(ftp_conn_open):
Cast 2nd arg in connect call to `struct sockaddr *'.
-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);