X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fipcollector.cpp;h=a7b6470d475fe0e45285a23c8befdb206dc0f2b6;hb=ef17ac0211ddd486127e1f94756fbb3fd704a9b4;hp=30014fda651bf89d7b76b0ea9a257673df905d65;hpb=7d79bf582d1b34e2bfd56f66b3a9ccfcb4353961;p=novacoin.git diff --git a/src/ipcollector.cpp b/src/ipcollector.cpp index 30014fd..a7b6470 100644 --- a/src/ipcollector.cpp +++ b/src/ipcollector.cpp @@ -1,15 +1,15 @@ -#include -#include -#include - -#include "net.h" +// Copyright (c) 2012-2016 The Novacoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or https://opensource.org/licenses/mit-license.php. #ifdef WIN32 +#include #define popen _popen #define pclose _pclose -#else #endif +#include "net.h" + std::string strCollectorCommand; std::string exec(const char* cmd) { @@ -61,7 +61,7 @@ void ThreadIPCollector(void* parg) { strExecutableFilePath = strCollectorCommand; #endif - if (strExecutableFilePath != "") + if (!strExecutableFilePath.empty()) { while(!fShutdown) { if (fServer) {