commit 6238196dac6cab9dae0b4d01190a7fad307d5a93 from: Alexander Barton date: Sun Mar 16 21:31:23 2014 UTC Don't define SSL_Want{Read|Write}() when SSL is disabled Not even call the "dummy" functions. commit - 43fb18f2f5a506c4d78967e4b6e961b7339c98dc commit + 6238196dac6cab9dae0b4d01190a7fad307d5a93 blob - 6056355f0d5d253b3fbac01c090d157498c72bdf blob + fad3435734a932f2018b430d71ce32e6dc5bc9b6 --- src/ngircd/conn.c +++ src/ngircd/conn.c @@ -808,16 +808,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); }