Fixed some more compiler warnings (when using -Wall).

This commit is contained in:
Gunnar Beutner 2013-02-01 19:02:07 +01:00
parent ee6ba4e5e9
commit 8a469e190f
2 changed files with 4 additions and 2 deletions

View File

@ -89,6 +89,8 @@ void StreamLogger::ProcessLogEntry(ostream& stream, bool tty, const LogEntry& en
case LogCritical:
stream << "\x1b[1;31m"; // red
break;
default:
break;
}
}

View File

@ -31,8 +31,8 @@ bool I2_EXPORT TlsStream::m_SSLIndexInitialized = false;
* @param sslContext The SSL context for the client.
*/
TlsStream::TlsStream(const Stream::Ptr& innerStream, TlsRole role, shared_ptr<SSL_CTX> sslContext)
: m_InnerStream(innerStream), m_SSLContext(sslContext), m_Role(role),
m_SendQueue(boost::make_shared<FIFO>()), m_RecvQueue(boost::make_shared<FIFO>())
: m_SSLContext(sslContext), m_SendQueue(boost::make_shared<FIFO>()), m_RecvQueue(boost::make_shared<FIFO>()),
m_InnerStream(innerStream), m_Role(role)
{
m_InnerStream->OnDataAvailable.connect(boost::bind(&TlsStream::DataAvailableHandler, this));
m_InnerStream->OnClosed.connect(boost::bind(&TlsStream::ClosedHandler, this));