From eb63e9d39112002fe09fa1f9d5bf3d692b1963f3 Mon Sep 17 00:00:00 2001 From: jongmyeongko Date: Mon, 8 May 2017 10:47:45 +0900 Subject: [PATCH] Fix some coding rule violations Change-Id: I2ff09bb2305223afcf57572014cc0474f4f176e7 Signed-off-by: jongmyeongko --- plugin/app2sd/server/app2sd_interface.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/plugin/app2sd/server/app2sd_interface.c b/plugin/app2sd/server/app2sd_interface.c index aa9f152..f08abe7 100644 --- a/plugin/app2sd/server/app2sd_interface.c +++ b/plugin/app2sd/server/app2sd_interface.c @@ -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) -- 2.7.4