Fix coding rule 18/79618/2 accepted/tizen/common/20160803.193235 accepted/tizen/ivi/20160804.080808 accepted/tizen/mobile/20160804.080859 accepted/tizen/tv/20160804.080725 accepted/tizen/wearable/20160804.080606 submit/tizen/20160803.012753
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 12 Jul 2016 05:10:41 +0000 (14:10 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 18 Jul 2016 02:43:00 +0000 (19:43 -0700)
Change-Id: I940cde64906f58b631d966bd250acb07021cc479
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_cmd.c
src/pkg_info.c
src/pkg_rsc_slice.c

index f0b23aea586625addbc508329fd2adab454086bc..84ead6bd4775136c54355162014db2aafa8c7108 100644 (file)
@@ -482,7 +482,7 @@ static int __pkgmgr_list_cb(const pkgmgrinfo_pkginfo_h handle, void *user_data)
 
        printf("%s\tpkg_type [%s]\tpkgid [%s]\tname [%s]\tversion [%s]\tstorage [%s]\n",
                        for_all_users ? "system apps" : "user apps ", pkg_type, pkgid, pkg_label, pkg_version,
-                       (storage == PMINFO_EXTERNAL_STORAGE) ? "external":"internal");
+                       (storage == PMINFO_EXTERNAL_STORAGE) ? "external" : "internal");
        return ret;
 }
 
@@ -1053,12 +1053,11 @@ static int __process_request(uid_t uid)
                        break;
                }
 
-               if (strcmp(data.pkgid, PKG_SIZE_INFO_TOTAL) == 0) {
+               if (strcmp(data.pkgid, PKG_SIZE_INFO_TOTAL) == 0)
                        ret = pkgmgr_client_get_total_package_size_info(pc, __total_pkg_size_info_recv_cb, NULL);
-
-               } else {
+               else
                        ret = pkgmgr_client_get_package_size_info(pc, data.pkgid, __pkg_size_info_recv_cb, NULL);
-               }
+
                if (ret < 0) {
                        data.result = PKGCMD_ERR_FATAL_ERROR;
                        break;
index e0af4ef05d63cf82e49cb5a8e309c6407259021a..63a97cee7f17c891a2cce65d8ca69cf1a15959cf 100644 (file)
@@ -1851,7 +1851,7 @@ static int __get_app_info(char *appid)
                component == PMINFO_WATCH_APP) {
                printf("component: %s\n", component == PMINFO_UI_APP ?
                        "uiapp" : component == PMINFO_WIDGET_APP ?
-                       "widgetapp": "watchapp");
+                       "widgetapp" : "watchapp");
                if (icon)
                        printf("Icon: %s\n", icon);
                if (label)
index 275420dd9ded9cf353cb14ca9114fe2137319ade..67b109316af7ad9ba4cf6ecf3d6302b235439a84 100644 (file)
@@ -43,7 +43,6 @@
 
 static int __process_slice(void);
 static void __print_usage();
-//static int __is_authorized();
 
 struct rsc_tool_args_t {
        char res_path[PATH_MAX];