From c9d1b4b8ca63ac5dc3207ec5de54132381a858d0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 12 May 1997 16:33:44 +0000 Subject: (ftp_conn_open): Cast 2nd arg in connect call to `struct sockaddr *'. --- libftpconn/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3