diff options
Diffstat (limited to 'src/Daemon')
-rw-r--r-- | src/Daemon/Daemon.cpp | 15 | ||||
-rw-r--r-- | src/Daemon/MiddleWare.cpp | 4 |
2 files changed, 4 insertions, 15 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 4a4f6918..188cd0d1 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -114,17 +114,6 @@ static bool s_exiting; CCommLayerServer* g_pCommLayer; -/* Is it "." or ".."? */ -/* abrtlib candidate */ -static bool dot_or_dotdot(const char *filename) -{ - if (filename[0] != '.') return false; - if (filename[1] == '\0') return true; - if (filename[1] != '.') return false; - if (filename[2] == '\0') return true; - return false; -} - static double GetDirSize(const std::string &pPath, std::string *worst_dir = NULL, const char *excluded = NULL) { DIR *dp = opendir(pPath.c_str()); @@ -621,7 +610,7 @@ static void run_main_loop(GMainLoop* loop) if (s_timeout) alarm(s_timeout); - g_poll(fds, nfds, timeout); + g_poll(fds, nfds, timeout); if (s_timeout) alarm(0); @@ -709,7 +698,7 @@ int main(int argc, char** argv) default: error_msg_and_die( "Usage: abrtd [-dv]\n" - "\nOptions:" + "\nOptions:" "\n\t-d\tDo not daemonize" "\n\t-s\tLog to syslog even with -d" "\n\t-t SEC\tExit after SEC seconds of inactivity" diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp index 932db53d..e85ac2c0 100644 --- a/src/Daemon/MiddleWare.cpp +++ b/src/Daemon/MiddleWare.cpp @@ -91,7 +91,7 @@ static void DebugDumpToCrashReport(const std::string& pDebugDumpDir, map_crash_r dd.InitGetNextFile(); while (dd.GetNextFile(fileName, content, isTextFile)) { -VERB3 log(" file:'%s' text:%d", fileName.c_str(), isTextFile); + //VERB3 log(" file:'%s' text:%d", fileName.c_str(), isTextFile); if (!isTextFile) { add_crash_data_to_crash_report(pCrashReport, @@ -507,7 +507,7 @@ void LoadOpenGPGPublicKey(const char* key) * @return It return results of operation. See mw_result_t. */ static mw_result_t SavePackageDescriptionToDebugDump(const std::string& pExecutable, - const std::string& pDebugDumpDir) + const std::string& pDebugDumpDir) { std::string package; std::string packageName; |