diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-22 17:52:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-22 17:52:08 +0200 |
commit | c95f530ecbf6226541b6b1c27dd657b847ca15f9 (patch) | |
tree | 31e38c125d10d88a3fb249f8e541faf46b8b3f11 | |
parent | 55bd3ac99616a728f45543669a7fc1f1cc8eac0b (diff) | |
download | abrt-c95f530ecbf6226541b6b1c27dd657b847ca15f9.tar.gz abrt-c95f530ecbf6226541b6b1c27dd657b847ca15f9.tar.xz abrt-c95f530ecbf6226541b6b1c27dd657b847ca15f9.zip |
added forgotten "throw" keywords
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | lib/Plugins/CCpp.cpp | 6 | ||||
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 5fc37bca..8a5f65ee 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -135,7 +135,7 @@ void CAnalyzerCCpp::InstallDebugInfos(const std::string& pPackage) while (1) { /* Does not seem to be needed - fd_set rsfd; + fd_set rsfd; FD_ZERO(&rsfd); FD_SET(pipeout[0], &rsfd); @@ -383,7 +383,7 @@ void CAnalyzerCCpp::ExecVP(const char* pCommand, char* const pArgs[], const std: if ((GID[0] = GetGIDFromUID(pUID)) == -1) { - CABRTException(EXCEP_PLUGIN, "CAnalyzerCCpp::ExecVP(): cannot get GUI for UID."); + throw CABRTException(EXCEP_PLUGIN, "CAnalyzerCCpp::ExecVP(): cannot get GUI for UID."); } pipe(pipeout); /* error check? */ @@ -393,7 +393,7 @@ void CAnalyzerCCpp::ExecVP(const char* pCommand, char* const pArgs[], const std: { close(pipeout[0]); close(pipeout[1]); - CABRTException(EXCEP_PLUGIN, "CAnalyzerCCpp::ExecVP(): fork failed."); + throw CABRTException(EXCEP_PLUGIN, "CAnalyzerCCpp::ExecVP(): fork failed."); } if (child == 0) { diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index f42cbe09..22f549ed 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -591,7 +591,7 @@ void CCrashWatcher::CreatePidFile() } /* something went wrong */ - CABRTException(EXCEP_FATAL, "CCrashWatcher::CreatePidFile(): can not open pid file"); + throw CABRTException(EXCEP_FATAL, "CCrashWatcher::CreatePidFile(): can not open pid file"); } void CCrashWatcher::Lock() |