]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
ModuleManager: use std::flush instead of fflush(stdout).
authorPeter Powell <petpow@saberuk.com>
Tue, 5 Feb 2019 00:06:03 +0000 (00:06 +0000)
committerPeter Powell <petpow@saberuk.com>
Tue, 5 Feb 2019 00:06:03 +0000 (00:06 +0000)
src/modulemanager.cpp

index 86edd572f7188cdd6789e6db3aba8b7b2dd8ed65..5ed7d12d5855c9a2688911d05aa827ef0b2bdd41 100644 (file)
@@ -126,8 +126,7 @@ bool ModuleManager::Load(const std::string& modname, bool defer)
 /* We must load the modules AFTER initializing the socket engine, now */
 void ModuleManager::LoadCoreModules(std::map<std::string, ServiceList>& servicemap)
 {
-       std::cout << std::endl << "Loading core commands";
-       fflush(stdout);
+       std::cout << std::endl << "Loading core commands" << std::flush;
 
        DIR* library = opendir(ServerInstance->Config->Paths.Module.c_str());
        if (library)
@@ -137,8 +136,7 @@ void ModuleManager::LoadCoreModules(std::map<std::string, ServiceList>& servicem
                {
                        if (InspIRCd::Match(entry->d_name, "core_*.so", ascii_case_insensitive_map))
                        {
-                               std::cout << ".";
-                               fflush(stdout);
+                               std::cout << "." << std::flush;
 
                                this->NewServices = &servicemap[entry->d_name];