]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
bpf: align struct initialization
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 09:18:56 +0000 (10:18 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 09:50:03 +0000 (10:50 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgroup2_devices.c

index b0af3557091ecfadea6dee0569421bd1d68590df..435cc0dc2e3db8d2622d2c9bd53b12584e44dee7 100644 (file)
@@ -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));