From 8828c61a8b201405e1c3a6ba5a9fc88881d14f8a Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 18 Feb 2021 10:18:56 +0100 Subject: [PATCH] bpf: align struct initialization Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgroup2_devices.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/cgroups/cgroup2_devices.c b/src/lxc/cgroups/cgroup2_devices.c index b0af35570..435cc0dc2 100644 --- a/src/lxc/cgroups/cgroup2_devices.c +++ b/src/lxc/cgroups/cgroup2_devices.c @@ -425,9 +425,9 @@ int bpf_program_cgroup_detach(struct bpf_program *prog) return 0; attr = &(union bpf_attr){ - .attach_type = prog->attached_type, - .target_fd = prog->fd_cgroup, - .attach_bpf_fd = prog->kernel_fd, + .attach_type = prog->attached_type, + .target_fd = prog->fd_cgroup, + .attach_bpf_fd = prog->kernel_fd, }; ret = bpf(BPF_PROG_DETACH, attr, sizeof(*attr)); -- 2.47.3