]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Remove needless chdir() from inspircd executable
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 7e9d56734fd2269fdfe9b7bb3a63d49b799af0d3..a932b95e10fe9aeabf4bd162527bd12d32d31370 100644 (file)
@@ -401,15 +401,6 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        this->Config->argv = argv;
        this->Config->argc = argc;
 
-       if (chdir(Config->GetFullProgDir().c_str()))
-       {
-               printf("Unable to change to my directory: %s\nAborted.", strerror(errno));
-               exit(0);
-       }
-
-       this->Config->opertypes.clear();
-       this->Config->operclass.clear();
-
        this->TIME = this->OLDTIME = this->startup_time = time(NULL);
        srand(this->TIME);
 
@@ -568,7 +559,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        if (Config->sid.empty())
        {
                // Generate one
-               int sid = 0;
+               unsigned int sid = 0;
                char sidstr[4];
 
                for (const char* x = Config->ServerName.c_str(); *x; ++x)