diff options
author | hj kim <backto.kim@samsung.com> | 2020-06-23 11:26:39 +0900 |
---|---|---|
committer | hj kim <backto.kim@samsung.com> | 2020-06-23 11:47:21 +0900 |
commit | a53356a846ea545ca649897ee623be0424eeecb8 (patch) | |
tree | 0f03424a07ea221247cce2af24880a8fdf406e57 | |
parent | 2311ef097098d5fc21ff8688db3a2407c32f1eb6 (diff) | |
download | media-controller-a53356a846ea545ca649897ee623be0424eeecb8.tar.gz media-controller-a53356a846ea545ca649897ee623be0424eeecb8.tar.bz2 media-controller-a53356a846ea545ca649897ee623be0424eeecb8.zip |
Fix typo
Change-Id: I6e938c1866a4a09a7d3654c236e80e6ddb7fc5fe
-rw-r--r-- | src/media_controller_db.c | 6 | ||||
-rw-r--r-- | src/media_controller_ipc.c | 4 | ||||
-rw-r--r-- | src/media_controller_metadata.c | 2 | ||||
-rw-r--r-- | src/media_controller_server.c | 2 | ||||
-rwxr-xr-x | svc/include/media_controller_socket.h | 2 | ||||
-rwxr-xr-x | test/client_test/media_controller_client_test.c | 6 | ||||
-rwxr-xr-x | test/server_test/media_controller_server_test.c | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/src/media_controller_db.c b/src/media_controller_db.c index d1f26e5..f10ff74 100644 --- a/src/media_controller_db.c +++ b/src/media_controller_db.c @@ -389,7 +389,7 @@ int _mc_db_get_pb_action_ability(sqlite3 *handle, const char *server_name, mc_pl unsigned long long _decided = 0; unsigned long long _supported = 0; - mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "invliad ability"); + mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "invalid ability"); ret = __mc_db_get_ability(handle, server_name, &_decided, &_supported); mc_retvm_if(ret != MEDIA_CONTROLLER_ERROR_NONE, ret, "__mc_db_get_ability failed"); @@ -411,7 +411,7 @@ int _mc_db_get_display_mode_ability(sqlite3 *handle, const char *server_name, un unsigned long long _supported = 0; unsigned int _ability = 0; - mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invliad ability"); + mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "invalid ability"); ret = __mc_db_get_ability(handle, server_name, &_decided, &_supported); mc_retvm_if(ret != MEDIA_CONTROLLER_ERROR_NONE, ret, "__mc_db_get_ability failed"); @@ -440,7 +440,7 @@ int _mc_db_get_display_rotation_ability(sqlite3 *handle, const char *server_name unsigned long long _supported = 0; unsigned int _ability = 0; - mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invliad ability"); + mc_retvm_if(!ability, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "invalid ability"); ret = __mc_db_get_ability(handle, server_name, &_decided, &_supported); mc_retvm_if(ret != MEDIA_CONTROLLER_ERROR_NONE, ret, "__mc_db_get_ability failed"); diff --git a/src/media_controller_ipc.c b/src/media_controller_ipc.c index d42dff3..c1f7c68 100644 --- a/src/media_controller_ipc.c +++ b/src/media_controller_ipc.c @@ -173,7 +173,7 @@ int _mc_ipc_unref_dbus_connection(GDBusConnection *connection, int *dref_count) if (*dref_count >= 1) { (*dref_count)--; } else { - mc_debug("invlid ref_count state : %d", *dref_count); + mc_debug("invalid ref_count state : %d", *dref_count); return MEDIA_CONTROLLER_ERROR_INVALID_OPERATION; } @@ -474,7 +474,7 @@ int _mc_ipc_service_connect(mc_priv_type_e priv_type) ret = __make_service_connection(priv_type); mc_retvm_if(ret == MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED, ret, "Permission deny!"); - /* Try to make connection untill starting daemon is completed */ + /* Try to make connection until starting daemon is completed */ while ((ret != MEDIA_CONTROLLER_ERROR_NONE) && (retry_count++ < MAX_WAIT_COUNT)) { MC_MILLISEC_SLEEP(200); mc_error("[No-Error] retry_count [%d]", retry_count); diff --git a/src/media_controller_metadata.c b/src/media_controller_metadata.c index aa59a8b..c1c523f 100644 --- a/src/media_controller_metadata.c +++ b/src/media_controller_metadata.c @@ -536,7 +536,7 @@ int _parse_encoded_meta(mc_meta_e attribute, const char *encoded_meta, int *int_ if (ret == MEDIA_CONTROLLER_ERROR_NONE) { *int_val_1 = _int_val_1; - if (MC_STRING_VALID(params[2])) //if the string after delimter is NULL, g_strsplit returns "" + if (MC_STRING_VALID(params[2])) //if the string after delimiter is NULL, g_strsplit returns "" *str_val = g_strdup(params[2]); else *str_val = NULL; diff --git a/src/media_controller_server.c b/src/media_controller_server.c index c44a265..f80c549 100644 --- a/src/media_controller_server.c +++ b/src/media_controller_server.c @@ -1298,7 +1298,7 @@ static int __mc_server_update_ability(mc_server_h server, int support_item, mc_a media_controller_server_s *mc_server = (media_controller_server_s *)server; mc_retvm_if(!mc_server, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invalid server"); - mc_retvm_if(((support != MC_ABILITY_SUPPORTED_YES) && (support != MC_ABILITY_SUPPORTED_NO)), MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invalid suupport [%d]", support); + mc_retvm_if(((support != MC_ABILITY_SUPPORTED_YES) && (support != MC_ABILITY_SUPPORTED_NO)), MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Invalid support [%d]", support); /* Change decided bit to 1(set) */ _mc_util_set_bit(support_item, TRUE, &mc_server->basic_ability.decided); diff --git a/svc/include/media_controller_socket.h b/svc/include/media_controller_socket.h index 3dfd97f..54dd088 100755 --- a/svc/include/media_controller_socket.h +++ b/svc/include/media_controller_socket.h @@ -59,7 +59,7 @@ typedef struct { int pid; uid_t uid; int result; - size_t msg_size; /*this is size of message below and this does not include the terminationg null byte ('\0'). */ + size_t msg_size; char *msg; } mc_comm_msg_s; diff --git a/test/client_test/media_controller_client_test.c b/test/client_test/media_controller_client_test.c index 74d7ea5..7a75571 100755 --- a/test/client_test/media_controller_client_test.c +++ b/test/client_test/media_controller_client_test.c @@ -438,7 +438,7 @@ static gboolean _create() ret = mc_client_create(&g_mc_client); if (ret != MEDIA_CONTROLLER_ERROR_NONE) { - g_print("Fail to create media contoller client"); + g_print("Fail to create media controller client"); return FALSE; } g_print("== success create \n"); @@ -453,7 +453,7 @@ static gboolean _foreach() ret = mc_client_foreach_server(g_mc_client, __mc_activated_server_cb, NULL); if (ret != MEDIA_CONTROLLER_ERROR_NONE) { - g_print("Fail to foreach media contoller client"); + g_print("Fail to foreach media controller client"); return FALSE; } g_print("== success create \n"); @@ -984,7 +984,7 @@ static gboolean _destroy() ret = mc_client_destroy(g_mc_client); if (ret != MEDIA_CONTROLLER_ERROR_NONE) { - g_print("Fail to destroy media contoller client"); + g_print("Fail to destroy media controller client"); return FALSE; } diff --git a/test/server_test/media_controller_server_test.c b/test/server_test/media_controller_server_test.c index 81ec54c..ba84394 100755 --- a/test/server_test/media_controller_server_test.c +++ b/test/server_test/media_controller_server_test.c @@ -562,7 +562,7 @@ static gboolean __create() ret = mc_server_create(&g_mc_server); if (ret != MEDIA_CONTROLLER_ERROR_NONE) { - g_print("Fail to create media contoller server"); + g_print("Fail to create media controller server"); return FALSE; } g_print("== success create \n"); @@ -931,7 +931,7 @@ static gboolean __destroy() ret = mc_server_destroy(g_mc_server); if (ret != MEDIA_CONTROLLER_ERROR_NONE) { - g_print("Fail to destroy media contoller server"); + g_print("Fail to destroy media controller server"); return FALSE; } |