aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-02 10:06:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-02 10:06:47 +0000
commitfe37fb5921a590a70ddcdb146955eb94b9ecf17b (patch)
tree6ab7a1ad89dd69bc25a4f8c6548b2087434a141d /lib/ftp.c
parent221ecd0a30a7283277ba0dc9036a9afe6f99147a (diff)
Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 50bd2918e..fe40ac2a0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1211,10 +1211,10 @@ CURLcode ftp_use_port(struct connectdata *conn)
if(bind(portsock, (struct sockaddr *)&sa, size) >= 0) {
/* we succeeded to bind */
struct sockaddr_in add;
- size = sizeof(add);
+ socklen_t socksize = sizeof(add);
if(getsockname(portsock, (struct sockaddr *) &add,
- (socklen_t *)&size)<0) {
+ &socksize)<0) {
failf(data, "getsockname() failed");
return CURLE_FTP_PORT_FAILED;
}