]> granicus.if.org Git - curl/commitdiff
fix compiler warnings
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Dec 2003 13:40:12 +0000 (13:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Dec 2003 13:40:12 +0000 (13:40 +0000)
lib/ftp.c
lib/transfer.c

index 3f51dd638a292623efaae4aebdbf436c79056730..b3dbb0735db02fbc766f6f50c16404772181f498 100644 (file)
--- 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
 };
 
index 15c74c951eb1de109617a3f5a38006d73ce19dee..5464d46a174d4659535b745eb3da62579cfaa4a6 100644 (file)
@@ -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;