summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-09 12:09:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-09 12:09:09 +0200
commit5bfd6ac66529ed1976db7df0ab4853eec855e411 (patch)
tree19424c17c265d894accd7cb1715bbbf8cc3a2824 /src/Daemon
parentc210f6793f3f1d62ff241bb31c42938e05e9a783 (diff)
downloadabrt-5bfd6ac66529ed1976db7df0ab4853eec855e411.tar.gz
abrt-5bfd6ac66529ed1976db7df0ab4853eec855e411.tar.xz
abrt-5bfd6ac66529ed1976db7df0ab4853eec855e411.zip
style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/CrashWatcher.cpp7
-rw-r--r--src/Daemon/Daemon.cpp6
2 files changed, 7 insertions, 6 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 1ad59988..cba81f14 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -149,7 +149,8 @@ gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition,
return TRUE;
}
-void *CCrashWatcher::create_report(void *arg){
+void *CCrashWatcher::create_report(void *arg)
+{
thread_data_t *thread_data = (thread_data_t *) arg;
map_crash_info_t crashReport;
thread_data->daemon->Debug("Creating report...");
@@ -792,7 +793,7 @@ uint64_t CCrashWatcher::CreateReport_t(const std::string &pUUID,const std::strin
thread_data->UID = xstrdup(pUID.c_str());
thread_data->dest = xstrdup(pSender.c_str());
thread_data->daemon = this;
- if(pthread_create(&(thread_data->thread_id), NULL, create_report, (void *)thread_data) != 0)
+ if (pthread_create(&(thread_data->thread_id), NULL, create_report, (void *)thread_data) != 0)
{
throw CABRTException(EXCEP_FATAL, "CCrashWatcher::CreateReport_t(): Cannot create thread!");
}
@@ -876,7 +877,7 @@ vector_map_string_string_t CCrashWatcher::GetPluginsInfo()
{
return m_pMW->GetPluginsInfo();
}
- catch(CABRTException &e)
+ catch (CABRTException &e)
{
if (e.type() == EXCEP_FATAL)
{
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 0b7393aa..b8b350c4 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -81,7 +81,7 @@ int main(int argc, char** argv)
{
usleep(100 * 1000);
}
- _exit(sig_caught != SIGTERM); /* TERM:ok (0), anything else: bad (1) */
+ _exit(sig_caught != SIGTERM); /* TERM:ok(0), else:bad(1) */
}
/* Child (daemon) continues */
pid_t sid = setsid();
@@ -104,11 +104,11 @@ int main(int argc, char** argv)
}
g_pCrashWatcher->Run();
}
- catch(CABRTException& e)
+ catch (CABRTException& e)
{
std::cerr << "Cannot create daemon: " << e.what() << std::endl;
}
- catch(std::exception& e)
+ catch (std::exception& e)
{
std::cerr << "Cannot create daemon: " << e.what() << std::endl;
}