[gnome-software: 1/3] rpm-ostree: Fix some const-correctness warnings
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/3] rpm-ostree: Fix some const-correctness warnings
- Date: Mon, 29 Mar 2021 21:36:23 +0000 (UTC)
commit 804a8cb187ca091782fe003a810db7b223c09d28
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Mar 26 18:08:46 2021 +0000
rpm-ostree: Fix some const-correctness warnings
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 80855dce9..e47c282ba 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -565,7 +565,7 @@ make_rpmostree_modifiers_variant (const char *install_package,
if (install_package != NULL) {
g_autoptr(GPtrArray) repo_pkgs = g_ptr_array_new ();
- g_ptr_array_add (repo_pkgs, install_package);
+ g_ptr_array_add (repo_pkgs, (gpointer) install_package);
g_variant_dict_insert_value (&dict, "install-packages",
g_variant_new_strv ((const char *const*)repo_pkgs->pdata,
@@ -576,7 +576,7 @@ make_rpmostree_modifiers_variant (const char *install_package,
if (uninstall_package != NULL) {
g_autoptr(GPtrArray) repo_pkgs = g_ptr_array_new ();
- g_ptr_array_add (repo_pkgs, uninstall_package);
+ g_ptr_array_add (repo_pkgs, (gpointer) uninstall_package);
g_variant_dict_insert_value (&dict, "uninstall-packages",
g_variant_new_strv ((const char *const*)repo_pkgs->pdata,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]