1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

fix compiler warnings for SSL-disabled builds

This commit is contained in:
Daniel Stenberg 2007-01-25 21:00:03 +00:00
parent 1c0224be42
commit 2b280bcc69
2 changed files with 3 additions and 1 deletions

View File

@ -609,6 +609,9 @@ bool Curl_ssl_data_pending(struct connectdata *conn,
if(conn->ssl[connindex].handle)
/* SSL is in use */
return SSL_pending(conn->ssl[connindex].handle);
#else
(void)conn;
(void)connindex;
#endif
return FALSE; /* nothing pending */

View File

@ -77,7 +77,6 @@ bool Curl_ssl_data_pending(struct connectdata *conn,
#if !defined(USE_SSL) && !defined(SSLGEN_C)
/* set up blank macros for none-SSL builds */
#define Curl_ssl_close_all(x)
#define Curl_ssl_data_pending(x,y) 0
#endif
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */