Port rpmostree-builtin-cleanup 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 e9fc5a95e8
commit b9cfbfae0f
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \
src/app/rpmostree-builtin-rebase.cxx \ src/app/rpmostree-builtin-rebase.cxx \
src/app/rpmostree-builtin-cancel.cxx \ src/app/rpmostree-builtin-cancel.cxx \
src/app/rpmostree-builtin-cliwrap.cxx \ src/app/rpmostree-builtin-cliwrap.cxx \
src/app/rpmostree-builtin-cleanup.c \ src/app/rpmostree-builtin-cleanup.cxx \
src/app/rpmostree-builtin-initramfs.c \ src/app/rpmostree-builtin-initramfs.c \
src/app/rpmostree-builtin-initramfs-etc.c \ src/app/rpmostree-builtin-initramfs-etc.c \
src/app/rpmostree-builtin-livefs.cxx \ src/app/rpmostree-builtin-livefs.cxx \

View File

@ -78,13 +78,13 @@ rpmostree_builtin_cleanup (int argc,
} }
if (opt_base) if (opt_base)
g_ptr_array_add (cleanup_types, "base"); g_ptr_array_add (cleanup_types, (char*)"base");
if (opt_pending) if (opt_pending)
g_ptr_array_add (cleanup_types, "pending-deploy"); g_ptr_array_add (cleanup_types, (char*)"pending-deploy");
if (opt_rollback) if (opt_rollback)
g_ptr_array_add (cleanup_types, "rollback-deploy"); g_ptr_array_add (cleanup_types, (char*)"rollback-deploy");
if (opt_repomd) if (opt_repomd)
g_ptr_array_add (cleanup_types, "repomd"); g_ptr_array_add (cleanup_types, (char*)"repomd");
if (cleanup_types->len == 0) if (cleanup_types->len == 0)
{ {
glnx_throw (error, "At least one cleanup option must be specified"); glnx_throw (error, "At least one cleanup option must be specified");