Port rpmostree-libbuiltin to C++

Prep for using https://cxx.rs/
This commit is contained in:
Colin Walters 2020-12-19 18:14:18 +00:00 committed by OpenShift Merge Robot
parent ec4c1b5530
commit aeb3dc2c07
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \
src/app/rpmostree-dbus-helpers.h \
src/app/rpmostree-override-builtins.h \
src/app/rpmostree-override-builtins.c \
src/app/rpmostree-libbuiltin.c \
src/app/rpmostree-libbuiltin.cxx \
src/app/rpmostree-libbuiltin.h \
src/app/rpmostree-polkit-agent.c \
src/app/rpmostree-polkit-agent.h \

View File

@ -99,7 +99,7 @@ rpmostree_print_treepkg_diff_from_sysroot_path (const gchar *sysroot_path,
g_autoptr(GPtrArray) deployments = ostree_sysroot_get_deployments (sysroot);
g_assert_cmpuint (deployments->len, >, 1);
OstreeDeployment *new_deployment = deployments->pdata[0];
auto new_deployment = static_cast<OstreeDeployment *>(deployments->pdata[0]);
OstreeDeployment *booted_deployment = ostree_sysroot_get_booted_deployment (sysroot);
if (!booted_deployment || ostree_deployment_equal (booted_deployment, new_deployment))