aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-14 15:43:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-14 15:43:23 +0000
commit3916d1e6cbe8eb5cb4dbbc43690b44b0b8fe6cc1 (patch)
treef568b0c6ef6306fe4f2461ab61a559db5b320c04 /lib/ftp.c
parent387aaba810bc124be82c6459648d30d56b012d71 (diff)
silence compiler warnings for mingw win32 builds --enable-debug
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 8ad00d440..526ff56ae 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1062,7 +1062,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
/* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case
we fail before the true secondary stuff is made */
- if(-1 != conn->sock[SECONDARYSOCKET])
+ if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET])
sclose(conn->sock[SECONDARYSOCKET]);
conn->sock[SECONDARYSOCKET] = portsock;