From: Piotr Ganicz Date: Tue, 24 May 2016 08:22:54 +0000 (+0200) Subject: Coding style patch X-Git-Tag: accepted/tizen/common/20160602.140049~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c301f0d876d8ec044997bc1f320783fd86e2be26;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Coding style patch This patch provides 0 errors in check-coding-style script. Change-Id: I46795f5ce502616116e330d126b2e0f5fbf079ba --- diff --git a/src/common/pkgmgr_registration.cc b/src/common/pkgmgr_registration.cc index 693b3f3..0fd6ab3 100644 --- a/src/common/pkgmgr_registration.cc +++ b/src/common/pkgmgr_registration.cc @@ -312,7 +312,8 @@ std::string QueryZipMountFile(const std::string& pkgid, uid_t uid) { != PMINFO_R_OK) return {}; char* zip_mount_file = nullptr; - int ret = pkgmgrinfo_pkginfo_get_zip_mount_file(package_info, &zip_mount_file); + int ret = pkgmgrinfo_pkginfo_get_zip_mount_file(package_info, + &zip_mount_file); if (ret != PMINFO_R_OK) { LOG(DEBUG) << "pkgmgrinfo_pkginfo_get_zip_mount_file failed with error: " << ret; diff --git a/src/common/shared_dirs.cc b/src/common/shared_dirs.cc index e911484..784d53e 100644 --- a/src/common/shared_dirs.cc +++ b/src/common/shared_dirs.cc @@ -34,6 +34,7 @@ #include #include #include +#include #include "common/security_registration.h" #include "common/pkgmgr_registration.h" diff --git a/src/common/step/pkgmgr/step_kill_apps.cc b/src/common/step/pkgmgr/step_kill_apps.cc index bf325f2..0a90bac 100644 --- a/src/common/step/pkgmgr/step_kill_apps.cc +++ b/src/common/step/pkgmgr/step_kill_apps.cc @@ -5,23 +5,24 @@ #include "common/step/pkgmgr/step_kill_apps.h" #include -#include #include #include +#include + #include "common/utils/glist_range.h" namespace { bool CheckAndKill(const std::string& appid, uid_t uid) { - int ret = aul_app_is_running_for_uid(appid.c_str(), uid); if (ret == 0) return true; int pid = aul_app_get_pid_for_uid(appid.c_str(), uid); if (pid < 0) { - LOG(ERROR) << "Failed to get pid for appid[" << appid << "] for uid [" << uid << "]"; + LOG(ERROR) << "Failed to get pid for appid[" << appid + << "] for uid [" << uid << "]"; return true; }