From 1fd72405af207bc539d6982034f5d14115f07726 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 31 May 2010 15:40:56 +0200 Subject: fix whitespace Signed-off-by: Denys Vlasenko --- lib/Plugins/rhticket.cpp | 2 +- lib/Utils/DebugDump.cpp | 2 +- lib/Utils/Plugin.cpp | 2 +- lib/Utils/abrt_dbus.cpp | 4 ++-- lib/Utils/abrt_rh_support.cpp | 2 +- lib/Utils/make_descr.cpp | 2 +- src/CLI/CLI.cpp | 2 +- src/Daemon/MiddleWare.cpp | 10 +++++----- src/Daemon/PluginManager.cpp | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/Plugins/rhticket.cpp b/lib/Plugins/rhticket.cpp index f1c4b224..77d0345a 100644 --- a/lib/Plugins/rhticket.cpp +++ b/lib/Plugins/rhticket.cpp @@ -237,7 +237,7 @@ string CReporterRHticket::Report(const map_crash_data_t& pCrashData, kill(child, SIGKILL); /* just in case */ waitpid(child, NULL, 0); if (tar) - tar_close(tar); + tar_close(tar); //close(pipe_from_parent_to_child[1]); - tar_close() does it itself unlink(tempfile); free(tempfile); diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 2d8da1ac..8b3d27d7 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -316,7 +316,7 @@ void CDebugDump::Create(const char *pDir, uid_t uid) if (chown(m_sDebugDumpDir.c_str(), m_uid, m_gid) == -1) { perror_msg("can't change '%s' ownership to %lu:%lu", m_sDebugDumpDir.c_str(), - (long)m_uid, (long)m_gid); + (long)m_uid, (long)m_gid); } SaveText(CD_UID, to_string(uid).c_str()); diff --git a/lib/Utils/Plugin.cpp b/lib/Utils/Plugin.cpp index 40cd2a02..07412657 100644 --- a/lib/Utils/Plugin.cpp +++ b/lib/Utils/Plugin.cpp @@ -81,7 +81,7 @@ bool LoadPluginSettings(const char *pPath, map_plugin_settings_t& pSettings, value += line[ii]; } } - + /* Skip broken or empty lines. */ if (!valid) continue; diff --git a/lib/Utils/abrt_dbus.cpp b/lib/Utils/abrt_dbus.cpp index 4ec79b90..4319d103 100644 --- a/lib/Utils/abrt_dbus.cpp +++ b/lib/Utils/abrt_dbus.cpp @@ -68,7 +68,7 @@ static char *sanitize_utf8(const char *src) { int bytes = 0; - unsigned c = (unsigned char) *src; + unsigned c = (unsigned char) *src; if (c <= 0x7f) { bytes = 1; @@ -134,7 +134,7 @@ static char *sanitize_utf8(const char *src) sanitized_pos = src - initial_src; sanitized = xstrndup(initial_src, sanitized_pos); } - sanitized = (char*) xrealloc(sanitized, sanitized_pos + 5); + sanitized = (char*) xrealloc(sanitized, sanitized_pos + 5); sanitized[sanitized_pos++] = '['; c = (unsigned char) *src++; sanitized[sanitized_pos++] = "0123456789ABCDEF"[c >> 4]; diff --git a/lib/Utils/abrt_rh_support.cpp b/lib/Utils/abrt_rh_support.cpp index 425c7e73..76a36119 100644 --- a/lib/Utils/abrt_rh_support.cpp +++ b/lib/Utils/abrt_rh_support.cpp @@ -479,7 +479,7 @@ send_report_to_new_case(const char* baseURL, } retval = xasprintf("Case created: %s", /*body,*/ case_location); } /* switch (attach HTTP code) */ - free_abrt_post_state(atch_state); + free_abrt_post_state(atch_state); } /* switch (ticket HTTP code) */ diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp index a2f0c034..3eeb4041 100644 --- a/lib/Utils/make_descr.cpp +++ b/lib/Utils/make_descr.cpp @@ -118,7 +118,7 @@ string make_description_bz(const map_crash_data_t& pCrashData) string tmp; add_content(was_multiline, tmp, - /* "reproduce: blah" looks ugly, fixing: */ + /* "reproduce: blah" looks ugly, fixing: */ itemname == FILENAME_REPRODUCE ? "How to reproduce" : itemname.c_str(), content.c_str() ); diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp index 3f3164d3..cd530e75 100644 --- a/src/CLI/CLI.cpp +++ b/src/CLI/CLI.cpp @@ -165,7 +165,7 @@ static void usage(char *argv0) " UID:UUID pair,\n" " unique UUID prefix - the crash with matching UUID will be acted upon\n" " @N - N'th crash (as displayed by --get-list-full) will be acted upon\n" - ), + ), name, name); } diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp index 436078ff..fafe0738 100644 --- a/src/Daemon/MiddleWare.cpp +++ b/src/Daemon/MiddleWare.cpp @@ -504,11 +504,11 @@ report_status_t Report(const map_crash_data_t& client_report, { const char *plugin_name = it_r->first.c_str(); - /* Check if the reporter is in the input list of allowed reporters. */ - if (reporters.end() == std::find(reporters.begin(), reporters.end(), plugin_name)) - { - continue; - } + /* Check if the reporter is in the input list of allowed reporters. */ + if (reporters.end() == std::find(reporters.begin(), reporters.end(), plugin_name)) + { + continue; + } try { diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp index 47b72e01..eca957df 100644 --- a/src/Daemon/PluginManager.cpp +++ b/src/Daemon/PluginManager.cpp @@ -450,7 +450,7 @@ map_plugin_settings_t CPluginManager::GetPluginSettings(const char *pName) map_map_string_t::iterator it_settings = m_map_plugin_settings.find(pName); if (it_settings != m_map_plugin_settings.end()) { - /* but it exists, its settings are available nevertheless */ + /* but it exists, its settings are available nevertheless */ VERB3 log("Returning settings for non-loaded plugin %s", pName); ret = it_settings->second; return ret; -- cgit