diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2022-05-25 14:42:52 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2022-05-25 15:36:05 +0000 |
commit | f5dfdd3bfe3f78ef3d30ebf64dae1124792590cd (patch) | |
tree | 827366468f21cbd33540ee793c4a83a31439b423 | |
parent | 5c8226991a9f7851a4ecde3ebb23b4d0397713f8 (diff) | |
download | strace-f5dfdd3bfe3f78ef3d30ebf64dae1124792590cd.tar.gz |
tests/bpf: make sizeof_attr const
No one is supposed to change it.
* tests/bpf.c (sizeof_attr): Add const qualifier.
-rw-r--r-- | tests/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bpf.c b/tests/bpf.c index dfceeb541..245cd9a68 100644 --- a/tests/bpf.c +++ b/tests/bpf.c @@ -108,7 +108,7 @@ struct bpf_check { static const kernel_ulong_t long_bits = (kernel_ulong_t) 0xfacefeed00000000ULL; static const char *errstr; -static unsigned int sizeof_attr = sizeof(union bpf_attr_data); +static const unsigned int sizeof_attr = sizeof(union bpf_attr_data); static unsigned int page_size; static unsigned long end_of_page; |