[gnome-settings-daemon/wip/benzea/keybindings-grabbing-rework: 29/44] smartcard: Fix warnings in g_clear_pointer callback parameter



commit 71055aa07dd7d6625dc361d2feaa8ff9fa0d55fd
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Feb 20 18:21:07 2019 +0100

    smartcard: Fix warnings in g_clear_pointer callback parameter

 plugins/smartcard/gsd-smartcard-service.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/smartcard/gsd-smartcard-service.c b/plugins/smartcard/gsd-smartcard-service.c
index 73f2e03c..783624f6 100644
--- a/plugins/smartcard/gsd-smartcard-service.c
+++ b/plugins/smartcard/gsd-smartcard-service.c
@@ -607,7 +607,7 @@ static void
 destroy_register_new_token_operation (RegisterNewTokenOperation *operation)
 {
         g_clear_pointer (&operation->main_thread_source,
-                         (GDestroyNotify) g_source_destroy);
+                         g_source_destroy);
         PK11_FreeSlot (operation->card_slot);
         g_free (operation->object_path);
         g_free (operation);
@@ -740,7 +740,6 @@ static void
 destroy_synchronize_token_operation (SynchronizeTokenOperation *operation)
 {
         g_clear_pointer (&operation->main_thread_source,
-                         (GDestroyNotify)
                          g_source_destroy);
         PK11_FreeSlot (operation->card_slot);
         g_free (operation);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]