summaryrefslogtreecommitdiff
path: root/tests/file_handle.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-02-16 16:36:14 +0000
committerDmitry V. Levin <ldv@altlinux.org>2017-02-16 16:36:14 +0000
commit18b582ec111a9f5b630ff46702bafdd1ffd03f1d (patch)
tree3f066a317e44cfd978327a4d472457e1ceb4a2da /tests/file_handle.c
parent1d5e810ce888564d632a70a7eaa61b0da2f6375b (diff)
downloadstrace-18b582ec111a9f5b630ff46702bafdd1ffd03f1d.tar.gz
tests: replace casts of 0xffffffff00000000ULL with F8ILL_KULONG_MASK
* tests/init_delete_module.h (bogus_zero): Remove. * tests/delete_module.c (main): Replace bogus_zero and (kernel_ulong_t) 0xffffffff00000000ULL with F8ILL_KULONG_MASK. * tests/finit_module.c (main): Replace bogus_zero with F8ILL_KULONG_MASK. * tests/init_module.c (main): Likewise. * tests/pipe2.c (main): Likewise. * tests/epoll_ctl.c (invoke_syscall): Replace (unsigned long) 0xffffffff00000000ULL with F8ILL_KULONG_MASK. * tests/rt_tgsigqueueinfo.c (k_tgsigqueueinfo): Likewise. * tests/fanotify_init.c (main): Likewise. * tests/xetpgid.c (main): Likewise. * tests/xetpriority.c (main): Likewise. (kernel_ulong_t) 0xffffffff00000000ULL with F8ILL_KULONG_MASK. * tests/fanotify_mark.c (main): Likewise. * tests/file_handle.c (main): Likewise. * tests/kexec_load.c (main): Likewise. * tests/setfsugid.c (main): Likewise. * tests/getgroups.c (main): Replace (long) 0xffffffff00000000ULL with F8ILL_KULONG_MASK. * tests/setgroups.c (main): Replace (long) 0xffffffff00000000ULL and (unsigned long) 0xffffffff00000000ULL with F8ILL_KULONG_MASK.
Diffstat (limited to 'tests/file_handle.c')
-rw-r--r--tests/file_handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/file_handle.c b/tests/file_handle.c
index a5ad6c73d..175cae0f9 100644
--- a/tests/file_handle.c
+++ b/tests/file_handle.c
@@ -187,7 +187,7 @@ main(void)
(kernel_ulong_t) 0x12345678ffffff9cULL,
};
static const struct strval open_flags[] = {
- { (kernel_ulong_t) 0xffffffff00000000ULL, "O_RDONLY" },
+ { F8ILL_KULONG_MASK, "O_RDONLY" },
{ (kernel_ulong_t) 0xdeadbeef80000001ULL,
"O_WRONLY|0x80000000" }
};