summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2023-09-07 15:25:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-09-07 15:25:55 +0000
commit066e9e889acc07a18b18d185dfc01f33c5125e9e (patch)
tree54fbb84f4eeae11dab0dd08f1ea02050b452b294
parent102919a2b8b823c0f243131d81df9a89eac50c9f (diff)
parentac8feea6432ec19f92012e9917b48b14e0296cb4 (diff)
downloadnet-066e9e889acc07a18b18d185dfc01f33c5125e9e.tar.gz
Merge "fix a compile warning about out of order field init" into main
-rw-r--r--common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h b/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h
index ba16d53c..13f7cb39 100644
--- a/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h
+++ b/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h
@@ -175,8 +175,8 @@ inline int runProgram(const BPF_FD_TYPE prog_fd, const void* data,
return bpf(BPF_PROG_RUN, {
.test = {
.prog_fd = BPF_FD_TO_U32(prog_fd),
- .data_in = ptr_to_u64(data),
.data_size_in = data_size,
+ .data_in = ptr_to_u64(data),
},
});
}