From 0077b9c0a2975df4fd13cedaa62493611cf98c2d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Jan 2002 00:51:33 +0000 Subject: [PATCH] pass an 'int' as the third argument to bind() --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index fe40ac2a0b..16441bdd85 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 -- 2.47.3