X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspircd.cpp;h=632319ea366a56cbbd3ca371cac870d04f588927;hb=bfdf503e5204ba17479084e688a3605dbc9007a2;hp=7d2fd2ad4f7cd7a1806e147d58451d1604087cd3;hpb=db0c7fae77b60857adf9dd083a1b6ce524a6808f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7d2fd2ad4..632319ea3 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -14,18 +14,19 @@ #include "inspircd.h" #include "configreader.h" #include -#ifndef WIN32 +#ifndef WIN32 #include #include #include - +#include +#include /* This is just to be completely certain that the change which fixed getrusage on RH7 doesn't break anything else -- Om */ #ifndef RUSAGE_SELF #define RUSAGE_SELF 0 #endif - #endif + #include #include #include "modules.h" @@ -38,10 +39,9 @@ #include "command_parse.h" #include "exitcodes.h" -#ifndef WIN32 -#include -#include -#else +#ifdef WIN32 + +/* This MUST remain static and delcared outside the class, so that WriteProcessMemory can reference it properly */ static DWORD owner_processid = 0; DWORD WindowsForkStart(InspIRCd * Instance) @@ -504,14 +504,10 @@ InspIRCd::InspIRCd(int argc, char** argv) case 'f': /* Log filename was set */ strlcpy(LogFileName, optarg, MAXBUF); - if (owner_processid) - printf("LOG: Setting logfile to %s\n", LogFileName); break; case 'c': /* Config filename was set */ strlcpy(ConfigFileName, optarg, MAXBUF); - if (owner_processid) - printf("CONFIG: Setting config file to %s\n", ConfigFileName); break; case 0: /* getopt_long_only() set an int variable, just keep going */