aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-25 21:00:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-25 21:00:03 +0000
commit2b280bcc69137e53650b06372cdfc60d86d214a3 (patch)
tree2525f8cba1fb2e4d8f12be49989dfef3da42de09
parent1c0224be4296da63d1c84809f7ef4e32ceac27f4 (diff)
fix compiler warnings for SSL-disabled builds
-rw-r--r--lib/sslgen.c3
-rw-r--r--lib/sslgen.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index 210ea9af5..f110a51ea 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -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 */
diff --git a/lib/sslgen.h b/lib/sslgen.h
index eef92982c..c24d46bf3 100644
--- a/lib/sslgen.h
+++ b/lib/sslgen.h
@@ -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 */