Module: ngircd.git Branch: master Commit: 6238196dac6cab9dae0b4d01190a7fad307d5a93 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=62381...
Author: Alexander Barton alex@barton.de Date: Sun Mar 16 22:28:37 2014 +0100
Don't define SSL_Want{Read|Write}() when SSL is disabled
Not even call the "dummy" functions.
---
src/ngircd/conn.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 6056355..fad3435 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -809,16 +809,6 @@ SSL_WantWrite(const CONNECTION *c) return false; }
-#else - -static inline bool -SSL_WantRead(UNUSED const CONNECTION *c) -{ return false; } - -static inline bool -SSL_WantWrite(UNUSED const CONNECTION *c) -{ return false; } - #endif
@@ -881,8 +871,10 @@ Conn_Handler(void) if (wdatalen > 0) #endif { +#ifdef SSL_SUPPORT if (SSL_WantRead(&My_Connections[i])) continue; +#endif io_event_add(My_Connections[i].sock, IO_WANTWRITE); }