From b7050d61c2c160a04666e4d0a343bf586e14d2be Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 21 Dec 2020 16:08:51 +0000 Subject: [PATCH] Port rpmostree-builtin-cancel to C++ Prep for using https://cxx.rs/ --- Makefile-rpm-ostree.am | 2 +- ...{rpmostree-builtin-cancel.c => rpmostree-builtin-cancel.cxx} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/app/{rpmostree-builtin-cancel.c => rpmostree-builtin-cancel.cxx} (98%) diff --git a/Makefile-rpm-ostree.am b/Makefile-rpm-ostree.am index 742b4cf0..87a0c9f3 100644 --- a/Makefile-rpm-ostree.am +++ b/Makefile-rpm-ostree.am @@ -26,7 +26,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \ src/app/rpmostree-builtin-deploy.cxx \ src/app/rpmostree-builtin-reload.cxx \ src/app/rpmostree-builtin-rebase.cxx \ - src/app/rpmostree-builtin-cancel.c \ + src/app/rpmostree-builtin-cancel.cxx \ src/app/rpmostree-builtin-cliwrap.c \ src/app/rpmostree-builtin-cleanup.c \ src/app/rpmostree-builtin-initramfs.c \ diff --git a/src/app/rpmostree-builtin-cancel.c b/src/app/rpmostree-builtin-cancel.cxx similarity index 98% rename from src/app/rpmostree-builtin-cancel.c rename to src/app/rpmostree-builtin-cancel.cxx index 11b1f70f..8c00b314 100644 --- a/src/app/rpmostree-builtin-cancel.c +++ b/src/app/rpmostree-builtin-cancel.cxx @@ -51,7 +51,7 @@ on_active_txn_path_changed (GObject *object, GParamSpec *pspec, gpointer user_data) { - gboolean *donep = user_data; + auto donep = static_cast(user_data); *donep = TRUE; g_main_context_wakeup (NULL); }