Fix defects detected by static analysis tool 55/262555/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 13 Aug 2021 07:17:20 +0000 (16:17 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 13 Aug 2021 07:17:20 +0000 (16:17 +0900)
Change-Id: I4a6ca3464e5a9c9c54b034fe7fa7f8a3577a7493

src/service_ipc_dbus.cpp

index 5ba390f..9e7acd0 100644 (file)
@@ -370,7 +370,7 @@ int CServiceIpcDbus::change_active_state(pid_t pid, int state)
                MAS_LOGD(">>>> Request mas send activate message : %s", service_name);
        }
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_INT32, &state,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -426,7 +426,7 @@ int CServiceIpcDbus::send_preprocessing_information(pid_t pid, const char* app_i
        else
                temp_app_id = strdup(app_id);
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_STRING, &temp_app_id,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -526,7 +526,7 @@ int CServiceIpcDbus::send_preprocessing_result(pid_t pid, bool result)
 
        int temp_result = result;
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_INT32, &temp_result,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -583,7 +583,7 @@ int CServiceIpcDbus::send_wakeup_engine_command(pid_t pid, const char* command)
        else
                temp_command = strdup(command);
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_STRING, &temp_command,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -641,7 +641,7 @@ int CServiceIpcDbus::change_service_state(pid_t pid, int state)
                MAS_LOGD(">>>> Request mas send service state message : %s", service_name);
        }
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_INT32, &state,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -691,7 +691,7 @@ int CServiceIpcDbus::change_voice_key_status(pid_t pid, int status)
                MAS_LOGD(">>>> Request mas send voice key status change message : %s", service_name);
        }
 
-       if (true != dbus_message_append_args(msg,
+       if (TRUE != dbus_message_append_args(msg,
                DBUS_TYPE_INT32, &status,
                DBUS_TYPE_INVALID)) {
                dbus_message_unref(msg);
@@ -1098,7 +1098,7 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle
                DBusMessage* msg = NULL;
                msg = dbus_connection_pop_message(mConnectionListener);
 
-               if (true != dbus_connection_get_is_connected(mConnectionListener)) {
+               if (TRUE != dbus_connection_get_is_connected(mConnectionListener)) {
                        MAS_LOGE("[ERROR] Connection is disconnected");
                        return ECORE_CALLBACK_RENEW;
                }