aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-03 00:51:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-03 00:51:33 +0000
commit0077b9c0a2975df4fd13cedaa62493611cf98c2d (patch)
treefeacbce2a4f53658a4632d2e3d989f48936fc6d7 /lib
parentfe37fb5921a590a70ddcdb146955eb94b9ecf17b (diff)
pass an 'int' as the third argument to bind()
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index fe40ac2a0..16441bdd8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1169,7 +1169,6 @@ CURLcode ftp_use_port(struct connectdata *conn)
struct sockaddr_in sa;
struct hostent *h=NULL;
char *hostdataptr=NULL;
- size_t size;
unsigned short porttouse;
char myhost[256] = "";
@@ -1193,6 +1192,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
if ( h ) {
if( (portsock = socket(AF_INET, SOCK_STREAM, 0)) >= 0 ) {
+ int size;
/* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case