[gnome-software: 2/3] flatpak: Avoid casting to (void *)
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/3] flatpak: Avoid casting to (void *)
- Date: Mon, 29 Mar 2021 21:36:23 +0000 (UTC)
commit c7d3df0fa5fd0a4d8b0e627e874899bd0d7c9ab9
Author: Phaedrus Leeds <mwleeds endlessos org>
Date: Mon Mar 29 14:28:27 2021 -0700
flatpak: Avoid casting to (void *)
gpointer seems more correct since it's the type used in the definition
of g_ptr_array_add()
plugins/flatpak/gs-flatpak.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index a5b480fae..e8b63e16c 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -3466,7 +3466,7 @@ gs_flatpak_search (GsFlatpak *self,
split[3],
NULL, NULL);
if (installed_ref == NULL) {
- g_ptr_array_add (silos_to_remove, (void *)app_ref);
+ g_ptr_array_add (silos_to_remove, (gpointer) app_ref);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]