diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2016-01-19 17:24:04 +0900 |
---|---|---|
committer | Minje Ahn <minje.ahn@samsung.com> | 2016-01-19 17:24:04 +0900 |
commit | e56ca0dc58da2065c43ab6701479374e56b2e0a0 (patch) | |
tree | 2bfefb76428d3fda375d8ff2dda6cd09dd84e455 | |
parent | 665edb802628eb63d6481410b007949c84dcb77d (diff) | |
download | libmedia-service-e56ca0dc58da2065c43ab6701479374e56b2e0a0.tar.gz libmedia-service-e56ca0dc58da2065c43ab6701479374e56b2e0a0.tar.bz2 libmedia-service-e56ca0dc58da2065c43ab6701479374e56b2e0a0.zip |
Apply coding rulesubmit/tizen/20160120.005558accepted/tizen/wearable/20160122.030606accepted/tizen/tv/20160122.030550accepted/tizen/mobile/20160122.030529
Change-Id: I0e78c268322ce6a12901fb36dbf4c29a9c1b201b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-x | plugin/media-content-plugin.c | 2 | ||||
-rwxr-xr-x | src/common/media-svc-db-utils.c | 2 | ||||
-rwxr-xr-x | src/common/media-svc.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugin/media-content-plugin.c b/plugin/media-content-plugin.c index aaef050..86fb56e 100755 --- a/plugin/media-content-plugin.c +++ b/plugin/media-content-plugin.c @@ -1131,7 +1131,7 @@ int check_folder_exist(void * handle, const char *storage_id, const char *folder return MEDIA_SVC_PLUGIN_ERROR_NONE; } -int count_subfolder(void * handle, const char *storage_id, const char *folder_path, int *count, char **err_msg) +int count_subfolder(void *handle, const char *storage_id, const char *folder_path, int *count, char **err_msg) { int ret = MEDIA_SVC_PLUGIN_ERROR_NONE; int cnt = 0; diff --git a/src/common/media-svc-db-utils.c b/src/common/media-svc-db-utils.c index bed8aa2..1215e09 100755 --- a/src/common/media-svc-db-utils.c +++ b/src/common/media-svc-db-utils.c @@ -1080,7 +1080,7 @@ static int __media_svc_db_upgrade(sqlite3 *db_handle, int cur_version, uid_t uid SQLITE3_SAFE_FREE(sql); } else { - ret = _media_svc_upgrade_table_query(db_handle, MEDIA_SVC_DB_TABLE_FOLDER , MEDIA_SVC_DB_LIST_FOLDER, uid); + ret = _media_svc_upgrade_table_query(db_handle, MEDIA_SVC_DB_TABLE_FOLDER, MEDIA_SVC_DB_LIST_FOLDER, uid); if (ret != MS_MEDIA_ERR_NONE) { media_svc_error("_media_svc_upgrade_table_query failed"); goto ERROR; diff --git a/src/common/media-svc.c b/src/common/media-svc.c index f7995ec..eedb771 100755 --- a/src/common/media-svc.c +++ b/src/common/media-svc.c @@ -1045,7 +1045,7 @@ int media_svc_rename_folder(MediaSvcHandle *handle, const char *storage_id, cons bool no_thumb = FALSE; if (STRING_VALID((const char *)sqlite3_column_text(sql_stmt, 0))) { - strncpy(media_uuid, (const char *)sqlite3_column_text(sql_stmt, 0), sizeof(media_uuid)); + strncpy(media_uuid, (const char *)sqlite3_column_text(sql_stmt, 0), sizeof(media_uuid)); media_uuid[sizeof(media_uuid) - 1] = '\0'; } else { media_svc_error("media UUID is NULL"); @@ -1053,7 +1053,7 @@ int media_svc_rename_folder(MediaSvcHandle *handle, const char *storage_id, cons } if (STRING_VALID((const char *)sqlite3_column_text(sql_stmt, 1))) { - strncpy(media_path, (const char *)sqlite3_column_text(sql_stmt, 1), sizeof(media_path)); + strncpy(media_path, (const char *)sqlite3_column_text(sql_stmt, 1), sizeof(media_path)); media_path[sizeof(media_path) - 1] = '\0'; } else { media_svc_error("media path is NULL"); |