aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-02 13:40:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-02 13:40:12 +0000
commit1b99d33b59e86cf086cd0e8c6618f41108934fcf (patch)
tree4e7714084b11bc1c7b2b78fb85d34fc3ee0ef7bc
parent800052dc50ace9748f607afc8f451afac948736b (diff)
fix compiler warnings
-rw-r--r--lib/ftp.c2
-rw-r--r--lib/transfer.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 3f51dd638..b3dbb0735 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -405,7 +405,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
return result;
}
-static char *ftpauth[]= {
+static const char *ftpauth[]= {
"SSL", "TLS", NULL
};
diff --git a/lib/transfer.c b/lib/transfer.c
index 15c74c951..5464d46a1 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1477,6 +1477,8 @@ CURLcode Curl_posttransfer(struct SessionHandle *data)
/* restore the signal handler for SIGPIPE before we get back */
if(!data->set.no_signal)
signal(SIGPIPE, data->state.prev_signal);
+#else
+ (void)data; /* unused parameter */
#endif
return CURLE_OK;