mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-27 14:03:43 +03:00
dbus-execute: inline variable definition
Fixes a compiler warning: ../src/core/dbus-execute.c:460:22: error: unused variable 'c' [-Werror,-Wunused-variable] ExecContext *c = ASSERT_PTR(userdata);
This commit is contained in:
parent
c9958c4fc5
commit
48b7490985
@ -457,7 +457,6 @@ static int property_get_syscall_archs(
|
|||||||
void *userdata,
|
void *userdata,
|
||||||
sd_bus_error *error) {
|
sd_bus_error *error) {
|
||||||
|
|
||||||
ExecContext *c = ASSERT_PTR(userdata);
|
|
||||||
_cleanup_strv_free_ char **l = NULL;
|
_cleanup_strv_free_ char **l = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -466,7 +465,7 @@ static int property_get_syscall_archs(
|
|||||||
|
|
||||||
#if HAVE_SECCOMP
|
#if HAVE_SECCOMP
|
||||||
void *id;
|
void *id;
|
||||||
SET_FOREACH(id, c->syscall_archs) {
|
SET_FOREACH(id, ASSERT_PTR((ExecContext*) userdata)->syscall_archs) {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
name = seccomp_arch_to_string(PTR_TO_UINT32(id) - 1);
|
name = seccomp_arch_to_string(PTR_TO_UINT32(id) - 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user