mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
Fix compiler warnings
This commit is contained in:
parent
faf6ce1a5f
commit
dd5ca24210
@ -86,7 +86,7 @@ StreamReadStatus NetString::ReadStringFromStream(const Stream::Ptr& stream, Stri
|
|||||||
|
|
||||||
char *data = context.Buffer + header_length + 1;
|
char *data = context.Buffer + header_length + 1;
|
||||||
|
|
||||||
if (context.Size < header_length + 1 + len + 1) {
|
if (context.Size < header_length + 1 + data_length) {
|
||||||
context.MustRead = true;
|
context.MustRead = true;
|
||||||
return StatusNeedData;
|
return StatusNeedData;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ boost::mutex StreamLogger::m_Mutex;
|
|||||||
* Constructor for the StreamLogger class.
|
* Constructor for the StreamLogger class.
|
||||||
*/
|
*/
|
||||||
StreamLogger::StreamLogger(void)
|
StreamLogger::StreamLogger(void)
|
||||||
: m_Stream(NULL), m_OwnsStream(false), m_Tty(false)
|
: m_Stream(NULL), m_OwnsStream(false)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void StreamLogger::Stop(void)
|
void StreamLogger::Stop(void)
|
||||||
|
@ -55,7 +55,6 @@ private:
|
|||||||
static boost::mutex m_Mutex;
|
static boost::mutex m_Mutex;
|
||||||
std::ostream *m_Stream;
|
std::ostream *m_Stream;
|
||||||
bool m_OwnsStream;
|
bool m_OwnsStream;
|
||||||
bool m_Tty;
|
|
||||||
|
|
||||||
Timer::Ptr m_FlushLogTimer;
|
Timer::Ptr m_FlushLogTimer;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user