dbus/gattlib_notification: Fix warning

pull/236/head
Olivier Martin 2021-10-17 22:27:32 +02:00 committed by Olivier Martin
parent e93504b91f
commit 809a10a289
1 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,9 @@ int gattlib_indication_stop(gatt_connection_t* connection, const uuid_t* uuid) {
return disconnect_signal_to_characteristic_uuid(connection, uuid, on_handle_characteristic_indication);
}
static int end_notification(struct gattlib_notification_handle *notification_handle) {
static void end_notification(void *notified_characteristic) {
struct gattlib_notification_handle *notification_handle = notified_characteristic;
g_signal_handler_disconnect(notification_handle->gatt, notification_handle->signal_id);
free(notification_handle);
}