Fix some coding rule violations 35/128135/2
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 8 May 2017 01:47:45 +0000 (10:47 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 8 May 2017 01:52:29 +0000 (10:52 +0900)
Change-Id: I2ff09bb2305223afcf57572014cc0474f4f176e7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
plugin/app2sd/server/app2sd_interface.c

index aa9f152..f08abe7 100644 (file)
@@ -1509,9 +1509,9 @@ static int _app2sd_migrate_legacy_image(const char *pkgid, const char *passwd,
 
 int app2sd_pre_migrate_legacy(const char *pkgid, uid_t uid)
 {
-        int ret = APP2EXT_SUCCESS;
-        char *passwd = NULL;
-        char *sdpath = NULL;
+       int ret = APP2EXT_SUCCESS;
+       char *passwd = NULL;
+       char *sdpath = NULL;
        char mmc_path[FILENAME_MAX] = { 0, };
        char file_path[FILENAME_MAX] = { 0, };
        uid_t default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
@@ -1563,8 +1563,8 @@ int app2sd_pre_migrate_legacy(const char *pkgid, uid_t uid)
 
 int app2sd_post_migrate_legacy(const char *pkgid, uid_t uid)
 {
-        int ret = APP2EXT_SUCCESS;
-        char *sdpath = NULL;
+       int ret = APP2EXT_SUCCESS;
+       char *sdpath = NULL;
        char *encoded_id = NULL;
        char mmc_path[FILENAME_MAX] = { 0, };
        char application_path[FILENAME_MAX] = { 0, };
@@ -1611,15 +1611,15 @@ int app2sd_post_migrate_legacy(const char *pkgid, uid_t uid)
 /* this function is called when sdcard is inserted */
 int app2sd_migrate_legacy_all(void)
 {
-        int ret = APP2EXT_SUCCESS;
-        int rc = 0;
+       int ret = APP2EXT_SUCCESS;
+       int rc = 0;
        char buf[FILENAME_MAX] = { 0, };
-        char app2sd_path[FILENAME_MAX] = { 0, };
-        char loopback_device[FILENAME_MAX] = { 0, };
-        char *sdpath = NULL;
-        DIR *dir = NULL;
-        struct dirent entry;
-        struct dirent *result = NULL;
+       char app2sd_path[FILENAME_MAX] = { 0, };
+       char loopback_device[FILENAME_MAX] = { 0, };
+       char *sdpath = NULL;
+       DIR *dir = NULL;
+       struct dirent entry;
+       struct dirent *result = NULL;
        uid_t default_uid = tzplatform_getuid(TZ_SYS_DEFAULT_USER);
        pkgmgr_client *pc;
 
@@ -1658,7 +1658,7 @@ int app2sd_migrate_legacy_all(void)
                /* check losetup image */
                if (_app2sd_check_is_luks_device(loopback_device) == 0) {
                        /* call installer backend
-                         * to change access-rule and broadcast this update */
+                        * to change access-rule and broadcast this update */
                        ret = pkgmgr_client_usr_migrate_external_image(pc,
                                entry.d_name, default_uid);
                        if (ret < 0)