diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:35:56 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:22:28 +0200 |
commit | b225b7a2673d53b6e8dbf6a96e6459592ada6d37 (patch) | |
tree | d1f4af17641698e95b388b8c9b0beec70e63bfb4 /cli/mmcli-manager.c | |
parent | 254f2e3412ac05833cdc095558c8143ad2fbddfc (diff) |
cli: remove explicit GDestroyNotify cast on g_object_unref
g_object_unref is in form of `void (*)(gpointer)`, which matches the
GDestroyNotify signature. An explicit GDestroyNotify cast on
g_object_unref is thus not needed.
Diffstat (limited to 'cli/mmcli-manager.c')
-rw-r--r-- | cli/mmcli-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/mmcli-manager.c b/cli/mmcli-manager.c index 24ecc4eb..5e5e60b6 100644 --- a/cli/mmcli-manager.c +++ b/cli/mmcli-manager.c @@ -314,7 +314,7 @@ list_current_modems (MMManager *manager) for (l = modems; l; l = g_list_next (l)) { print_modem_short_info (MM_OBJECT (l->data)); } - g_list_free_full (modems, (GDestroyNotify) g_object_unref); + g_list_free_full (modems, g_object_unref); } g_print ("\n"); } @@ -412,7 +412,7 @@ get_manager_ready (GObject *source, mm_manager_report_kernel_event (ctx->manager, properties, NULL, NULL, NULL); g_object_unref (properties); } - g_list_free_full (list, (GDestroyNotify) g_object_unref); + g_list_free_full (list, g_object_unref); } /* If we get cancelled, operation done */ |