version 0.2.3
authorSomeDude <SomeDude@NuBL7aaJ6Cn4fB7GXFb9Zfi8w1FhPyW3oKgU9TweZMw>
Fri, 21 Mar 2008 17:04:00 +0000 (18:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 21 Mar 2008 17:04:00 +0000 (18:04 +0100)
include/global.h
src/freenet/trustlistxml.cpp
src/global.cpp

index 5240cc7..db939a4 100644 (file)
@@ -2,10 +2,9 @@
 #define _global_\r
 \r
 #include <vector>\r
-//#include <zthread/Thread.h>\r
 #include "pthreadwrapper/thread.h"\r
 \r
-#define FMS_VERSION    "0.2.2"\r
+#define FMS_VERSION    "0.2.3"\r
 \r
 // opens database and creates tables and initial inserts if necessary\r
 void SetupDB();\r
@@ -26,9 +25,6 @@ void SigHandler(int signum);
 void MainFunction();\r
 void Shutdown();\r
 \r
-//void StartThreads(std::vector<PThread::Thread *> &threads);\r
-//void ShutdownThreads(std::vector<PThread::Thread *> &threads);\r
-\r
 // needed for Windows to setup network\r
 void SetupNetwork();\r
 // cleanup network on Windows\r
index 6b0329a..ebe0b60 100644 (file)
@@ -151,6 +151,8 @@ const bool TrustListXML::ParseXML(const std::string &xml)
                        identity="";\r
                        messagetrust=-1;\r
                        trustlisttrust=-1;\r
+                       messagetrustcomment="";\r
+                       trustlisttrustcomment="";\r
 \r
                        TiXmlHandle hnd2(node);\r
                        txt=hnd2.FirstChild("Identity").FirstChild().ToText();\r
index 087ce1c..251ea2a 100644 (file)
@@ -741,72 +741,6 @@ void SigHandler(int signum)
        exit(0);\r
 }\r
 \r
-/*\r
-void ShutdownThreads(std::vector<PThread::Thread *> &threads)\r
-{\r
-       std::vector<PThread::Thread *>::iterator i;\r
-       for(i=threads.begin(); i!=threads.end(); i++)\r
-       {\r
-               (*i)->Cancel();\r
-       }\r
-\r
-       for(i=threads.begin(); i!=threads.end(); i++)\r
-       {\r
-               LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_DEBUG,"ShutdownThreads waiting for thread to exit.");\r
-               //(*i)->wait();\r
-               (*i)->Join();\r
-               delete (*i);\r
-       }\r
-\r
-       threads.clear();\r
-\r
-}\r
-\r
-void StartThreads(std::vector<PThread::Thread *> &threads)\r
-{\r
-       std::string startfreenet;\r
-       std::string startnntp;\r
-       std::string starthttp;\r
-\r
-       if(Option::Instance()->Get("StartFreenetUpdater",startfreenet)==false)\r
-       {\r
-               startfreenet="true";\r
-               Option::Instance()->Set("StartFreenetUpdater","true");\r
-       }\r
-\r
-       if(Option::Instance()->Get("StartNNTP",startnntp)==false)\r
-       {\r
-               startnntp="true";\r
-               Option::Instance()->Set("StartNNTP","true");\r
-       }\r
-\r
-       if(Option::Instance()->Get("StartHTTP",starthttp)==false)\r
-       {\r
-               starthttp="true";\r
-               Option::Instance()->Set("StartHTTP","true");\r
-       }\r
-\r
-       if(startfreenet=="true")\r
-       {\r
-               PThread::Thread *t=new PThread::Thread(new FreenetMasterThread());\r
-               threads.push_back(t);\r
-       }\r
-\r
-       if(startnntp=="true")\r
-       {\r
-               PThread::Thread *t=new PThread::Thread(new NNTPListener());\r
-               threads.push_back(t);\r
-       }\r
-\r
-       if(starthttp=="true")\r
-       {\r
-               PThread::Thread *t=new PThread::Thread(new HTTPThread());\r
-               threads.push_back(t);\r
-       }\r
-\r
-}\r
-*/\r
-\r
 void FixCapitalBoardNames()\r
 {\r
        SQLite3DB::DB *db=SQLite3DB::DB::Instance();\r