1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05: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) if(conn->ssl[connindex].handle)
/* SSL is in use */ /* SSL is in use */
return SSL_pending(conn->ssl[connindex].handle); return SSL_pending(conn->ssl[connindex].handle);
#else
(void)conn;
(void)connindex;
#endif #endif
return FALSE; /* nothing pending */ 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) #if !defined(USE_SSL) && !defined(SSLGEN_C)
/* set up blank macros for none-SSL builds */ /* set up blank macros for none-SSL builds */
#define Curl_ssl_close_all(x) #define Curl_ssl_close_all(x)
#define Curl_ssl_data_pending(x,y) 0
#endif #endif
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */ #define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */