1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fix compiler warnings

This commit is contained in:
Daniel Stenberg 2003-12-02 13:40:12 +00:00
parent 800052dc50
commit 1b99d33b59
2 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
return result; return result;
} }
static char *ftpauth[]= { static const char *ftpauth[]= {
"SSL", "TLS", NULL "SSL", "TLS", NULL
}; };

View File

@ -1477,6 +1477,8 @@ CURLcode Curl_posttransfer(struct SessionHandle *data)
/* restore the signal handler for SIGPIPE before we get back */ /* restore the signal handler for SIGPIPE before we get back */
if(!data->set.no_signal) if(!data->set.no_signal)
signal(SIGPIPE, data->state.prev_signal); signal(SIGPIPE, data->state.prev_signal);
#else
(void)data; /* unused parameter */
#endif #endif
return CURLE_OK; return CURLE_OK;