Coding style patch 51/71151/1
authorPiotr Ganicz <p.ganicz@samsung.com>
Tue, 24 May 2016 08:22:54 +0000 (10:22 +0200)
committerPiotr Ganicz <p.ganicz@samsung.com>
Tue, 24 May 2016 08:42:50 +0000 (10:42 +0200)
This patch provides 0 errors in check-coding-style script.

Change-Id: I46795f5ce502616116e330d126b2e0f5fbf079ba

src/common/pkgmgr_registration.cc
src/common/shared_dirs.cc
src/common/step/pkgmgr/step_kill_apps.cc

index 693b3f3..0fd6ab3 100644 (file)
@@ -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;
index e911484..784d53e 100644 (file)
@@ -34,6 +34,7 @@
 #include <string>
 #include <utility>
 #include <vector>
+#include <tuple>
 
 #include "common/security_registration.h"
 #include "common/pkgmgr_registration.h"
index bf325f2..0a90bac 100644 (file)
@@ -5,23 +5,24 @@
 #include "common/step/pkgmgr/step_kill_apps.h"
 
 #include <sys/time.h>
-#include <string>
 #include <systemd/sd-login.h>
 #include <aul.h>
 
+#include <string>
+
 #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;
   }