diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 13:10:43 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 13:10:43 +0100 |
| commit | fc2c5e2f02e6da00e27d68a83277a61efdcc9f83 (patch) | |
| tree | 29578e2e041586f63d6aff5f6ec16db941ea2ef8 /lib | |
| parent | 86930df464c57f84a461e4a98e5f813bff73952d (diff) | |
| download | abrt-fc2c5e2f02e6da00e27d68a83277a61efdcc9f83.tar.gz abrt-fc2c5e2f02e6da00e27d68a83277a61efdcc9f83.tar.xz abrt-fc2c5e2f02e6da00e27d68a83277a61efdcc9f83.zip | |
style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Plugins/Bugzilla.cpp | 4 | ||||
| -rw-r--r-- | lib/Plugins/FileTransfer.cpp | 4 | ||||
| -rw-r--r-- | lib/Plugins/TicketUploader.cpp | 2 | ||||
| -rw-r--r-- | lib/Utils/CrashTypesSocket.cpp | 4 | ||||
| -rw-r--r-- | lib/Utils/xfuncs.cpp | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index fecbd27..2d065f6 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -287,7 +287,7 @@ void ctx::add_attachments(const char* bug_id_str, const map_crash_report_t& pCra if (type == CD_ATT) { char *encoded64 = encode_base64(content.c_str(), content.length()); - xmlrpc_value* param = xmlrpc_build_value(&env,"(s{s:s,s:s,s:s,s:s})", + xmlrpc_value* param = xmlrpc_build_value(&env, "(s{s:s,s:s,s:s,s:s})", bug_id_str, "description", ("File: " + filename).c_str(), "filename", filename.c_str(), @@ -483,7 +483,7 @@ void CReporterBugzilla::SetSettings(const map_plugin_settings_t& pSettings) m_sBugzillaURL.erase(m_sBugzillaURL.length() - 1); } /* - if(*(--m_sBugzillaURL.end()) == '/') + if (*(--m_sBugzillaURL.end()) == '/') { m_sBugzillaURL.erase(--m_sBugzillaURL.end()); } diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp index 8fff3a9..03ee464 100644 --- a/lib/Plugins/FileTransfer.cpp +++ b/lib/Plugins/FileTransfer.cpp @@ -114,7 +114,7 @@ now used in create_zip, but can be useful for some future archivers as well */ static void traverse_directory(const char * directory, void * something, - void (*func)(void *,const char *) ) + void (*func)(void *, const char *) ) { DIR * dp; struct dirent * dirp; @@ -225,7 +225,7 @@ static void create_tarbz2(const char * archive_name, const char * directory) #define BLOCK_MULTIPLIER 7 name_without_bz2 = xstrdup(archive_name); - strrchr(name_without_bz2,'.')[0] = '\0'; + strrchr(name_without_bz2, '.')[0] = '\0'; create_tar(name_without_bz2, directory); tarFD = open(name_without_bz2, O_RDONLY); diff --git a/lib/Plugins/TicketUploader.cpp b/lib/Plugins/TicketUploader.cpp index 6d28131..aa6d412 100644 --- a/lib/Plugins/TicketUploader.cpp +++ b/lib/Plugins/TicketUploader.cpp @@ -198,7 +198,7 @@ string CTicketUploader::Report(const map_crash_report_t& pCrashReport, } string tmptar_name = concat_path_file(tmpdir_name, file_name.c_str()); - if (mkdir(tmptar_name.c_str(),S_IRWXU)) + if (mkdir(tmptar_name.c_str(), S_IRWXU)) { Error(ssprintf("Can't mkdir '%s'", tmptar_name.c_str()).c_str()); } diff --git a/lib/Utils/CrashTypesSocket.cpp b/lib/Utils/CrashTypesSocket.cpp index 7c206de..f16e2a9 100644 --- a/lib/Utils/CrashTypesSocket.cpp +++ b/lib/Utils/CrashTypesSocket.cpp @@ -73,7 +73,7 @@ std::string crash_data_to_string(const map_crash_data_t& pCrashData) std::stringstream sCD; map_crash_data_t::const_iterator it_cd; sCD << "(" << pCrashData.size() << ")"; - for(it_cd = pCrashData.begin(); it_cd != pCrashData.end(); it_cd++) + for (it_cd = pCrashData.begin(); it_cd != pCrashData.end(); it_cd++) { sCD << "(" << it_cd->first.length() << ")"; sCD << it_cd->first; @@ -150,7 +150,7 @@ map_crash_data_t string_to_crash_data(const std::string& pMessage, int& len) sField = message.substr(ii, nSize); message.erase(0, ii + nSize); len += ii + nSize; - switch(nField % 4) + switch (nField % 4) { case 0: name = sField; diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp index b1941f7..0e57639 100644 --- a/lib/Utils/xfuncs.cpp +++ b/lib/Utils/xfuncs.cpp @@ -8,12 +8,12 @@ /* Turn on nonblocking I/O on a fd */ int ndelay_on(int fd) { - return fcntl(fd, F_SETFL, fcntl(fd,F_GETFL) | O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); } int ndelay_off(int fd) { - return fcntl(fd, F_SETFL, fcntl(fd,F_GETFL) & ~O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_NONBLOCK); } int close_on_exec_on(int fd) |
