Fix aarch64 casting build warnings
[platform/core/multimedia/libmm-sound.git] / mm_sound_focus_socket.c
index 1e7c0db..4d8c96f 100644 (file)
@@ -193,7 +193,7 @@ int mm_sound_focus_socket_register(int pid, const char *stream_type, int *client
        memset(&data, 0x00, sizeof(_mm_sound_focus_socket_param_t));
        memset(&result, 0x00, sizeof(_mm_sound_focus_socket_result_t));
        FILL_SOCKET_PARAM_REGISTER(data, FOCUS_FUNC_NAME_REGISTER, pid, stream_type);
-       if ((ret = _send_data_to_server(*client_fd, &data, &result)) < 0) {
+       if ((ret = _send_data_to_server(*client_fd, &data, &result))) {
                debug_error("failed to _send_data_to_server(), ret[0x%x]", ret);
                close(*client_fd);
                return ret;
@@ -257,7 +257,7 @@ int mm_sound_focus_socket_add_watch_cb(int pid, mm_sound_focus_type_e focus_type
        memset(&data, 0x00, sizeof(_mm_sound_focus_socket_param_t));
        memset(&result, 0x00, sizeof(_mm_sound_focus_socket_result_t));
        FILL_SOCKET_PARAM_ADD_WATCH(data, FOCUS_FUNC_NAME_ADD_WATCH, pid, focus_type);
-       if ((ret = _send_data_to_server(*client_fd, &data, &result)) < 0) {
+       if ((ret = _send_data_to_server(*client_fd, &data, &result))) {
                debug_error("failed to _send_data_to_server(), ret[0x%x]", ret);
                close(*client_fd);
                return ret;
@@ -376,7 +376,7 @@ int mm_sound_focus_socket_set_reacquisition(int pid, int client_fd, int server_f
 
        memset(&data, 0x00, sizeof(_mm_sound_focus_socket_param_t));
        memset(&result, 0x00, sizeof(_mm_sound_focus_socket_result_t));
-       FILL_SOCKET_PARAM_SET_REACQUISITION(data, FOCUS_FUNC_NAME_SET_REACQUISITON, pid, server_fd, reacquisition);
+       FILL_SOCKET_PARAM_SET_REACQUISITION(data, FOCUS_FUNC_NAME_SET_REACQUISITION, pid, server_fd, reacquisition);
 
        if ((ret = _send_data_to_server(client_fd, &data, &result)))
                debug_error("failed to _send_data_to_server(), ret[0x%x]", ret);