Remove compilation warning 82/256182/1
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 30 Mar 2021 11:23:36 +0000 (13:23 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 30 Mar 2021 11:36:31 +0000 (13:36 +0200)
Change-Id: I696004c46a5042660e91c4146f81c9ab94d62838

src/keyboard_tracker.c

index c5098452af41bb20b809fa3928dbb51122d5ca05..f4e752a5d32e37526fa5d7529375b0cb1954060b 100644 (file)
@@ -53,7 +53,7 @@ static const Eldbus_Service_Interface_Desc iface_desc = {
        E_KEYBOARD_SERVICE_NAVI_IFC_NAME, NULL, signals
 };
 
-static gboolean async_keyboard_cb(const AtspiDeviceEvent *stroke, void *data)
+static gboolean async_keyboard_cb(AtspiDeviceEvent *stroke, void *data)
 {
        DEBUG("AT-SPI DEVICE EVENT: ID(%d) STRING(%s) TYPE(%d) HW_CODE(%d) MODIFIERS(%d) TIMESTAMP(%d)", stroke->id, stroke->event_string, stroke->type, stroke->hw_code, stroke->modifiers, stroke->timestamp);
 
@@ -72,7 +72,7 @@ static gboolean async_keyboard_cb(const AtspiDeviceEvent *stroke, void *data)
        }
 
        /* There is bug in the api. stroke does not point to const values */
-       g_boxed_free(ATSPI_TYPE_DEVICE_EVENT, (AtspiDeviceEvent*)stroke);
+       g_boxed_free(ATSPI_TYPE_DEVICE_EVENT, stroke);
 
        return result;
 }