aboutsummaryrefslogtreecommitdiff
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
parent387aaba810bc124be82c6459648d30d56b012d71 (diff)
silence compiler warnings for mingw win32 builds --enable-debug
-rw-r--r--lib/connect.c3
-rw-r--r--lib/ftp.c2
-rw-r--r--lib/if2ip.h8
-rw-r--r--lib/strerror.c2
4 files changed, 7 insertions, 8 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 261ab08d8..f402ede77 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -364,6 +364,9 @@ static CURLcode bindlocal(struct connectdata *conn,
return CURLE_OK;
} /* end of device selection support */
+#else
+ (void)conn;
+ (void)sockfd;
#endif /* end of HAVE_INET_NTOA */
return CURLE_HTTP_PORT_FAILED;
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;
diff --git a/lib/if2ip.h b/lib/if2ip.h
index 45a180531..ddb73ee8b 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -24,12 +24,8 @@
***************************************************************************/
#include "setup.h"
-#if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN32__) && \
- !defined(__riscos__) && !defined(__INTERIX)
-extern char *Curl_if2ip(const char *interface, char *buf, int buf_size);
-#else
-#define Curl_if2ip(a,b,c) NULL
-#endif
+extern char *Curl_if2ip(const char *interf, char *buf, int buf_size);
+
#ifdef __INTERIX
/* Nedelcho Stanev's work-around for SFU 3.0 */
struct ifreq {
diff --git a/lib/strerror.c b/lib/strerror.c
index 0f0c0fff2..85baa635d 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -346,7 +346,7 @@ curl_share_strerror(CURLSHcode error)
static const char *
get_winsock_error (int err, char *buf, size_t len)
{
- char *p;
+ const char *p;
#ifndef CURL_DISABLE_VERBOSE_STRINGS
switch (err) {