Port rpmostree-builtin-cancel to C++

Prep for using https://cxx.rs/
This commit is contained in:
Colin Walters 2020-12-21 16:08:51 +00:00 committed by OpenShift Merge Robot
parent ccf2a1ea97
commit b7050d61c2
2 changed files with 2 additions and 2 deletions

View File

@ -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 \

View File

@ -51,7 +51,7 @@ on_active_txn_path_changed (GObject *object,
GParamSpec *pspec,
gpointer user_data)
{
gboolean *donep = user_data;
auto donep = static_cast<gboolean *>(user_data);
*donep = TRUE;
g_main_context_wakeup (NULL);
}