From 5bfd6ac66529ed1976db7df0ab4853eec855e411 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 Aug 2009 12:09:09 +0200 Subject: style fixes, no code changes Signed-off-by: Denys Vlasenko --- src/Daemon/CrashWatcher.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 1ad5998..cba81f1 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) { -- cgit