Port rpmostree-polkit-agent 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 665bb07994
commit 9a91eecbb0
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ rpm_ostree_SOURCES = src/app/main.cxx \
src/app/rpmostree-override-builtins.cxx \
src/app/rpmostree-libbuiltin.cxx \
src/app/rpmostree-libbuiltin.h \
src/app/rpmostree-polkit-agent.c \
src/app/rpmostree-polkit-agent.cxx \
src/app/rpmostree-polkit-agent.h \
src/app/rpmostree-builtin-kargs.c \
src/app/rpmostree-compose-builtin-tree.cxx \

View File

@ -120,7 +120,7 @@ fork_agent (pid_t *pid, const char *path, ...)
va_end(ap);
/* Allocate strv */
l = alloca (sizeof(char *) * (n + 1));
l = (char**)alloca (sizeof(char *) * (n + 1));
/* Fill in arguments */
va_start (ap, path);