]> granicus.if.org Git - icinga2/commitdiff
Windows fix for ConfigCompiler::ReadInput.
authorGunnar Beutner <gunnar@beutner.name>
Wed, 23 Jan 2013 20:58:19 +0000 (21:58 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 23 Jan 2013 20:58:19 +0000 (21:58 +0100)
lib/config/configcompiler.cpp

index 29102788c530c2e5ab2d485da24aa83dc6fc7ed3..4f0f1dd7016dcc0a2aeea09d90915e34e3f4eea7 100644 (file)
@@ -55,7 +55,7 @@ ConfigCompiler::~ConfigCompiler(void)
  */
 size_t ConfigCompiler::ReadInput(char *buffer, size_t max_size)
 {
-       m_Input->readsome(buffer, max_size);
+       m_Input->read(buffer, max_size);
        return static_cast<size_t>(m_Input->gcount());
 }
 
@@ -122,7 +122,7 @@ void ConfigCompiler::HandleLibrary(const String& library)
 vector<ConfigItem::Ptr> ConfigCompiler::CompileStream(const String& path,
     istream *stream)
 {
-       stream->exceptions(istream::failbit | istream::badbit);
+       stream->exceptions(istream::badbit);
 
        ConfigCompiler ctx(path, stream);
        ctx.Compile();