@@ -42,11 +42,11 @@ TEST(SyscallExit, openat2X_success)
42
42
43
43
/* =============================== ASSERT PARAMETERS ===========================*/
44
44
45
- /* Parameter 1: fd (type: PT_FD ) */
46
- evt_test->assert_numeric_param (1 , ( int64_t ) fd);
45
+ /* Parameter 1: fd (type: PT_FD32 ) */
46
+ evt_test->assert_numeric_param (1 , fd);
47
47
48
- /* Parameter 2: dirfd (type: PT_FD ) */
49
- evt_test->assert_numeric_param (2 , ( int64_t ) PPM_AT_FDCWD);
48
+ /* Parameter 2: dirfd (type: PT_FD32 ) */
49
+ evt_test->assert_numeric_param (2 , PPM_AT_FDCWD);
50
50
51
51
/* Parameter 3: name (type: PT_FSPATH) */
52
52
evt_test->assert_charbuf_param (3 , pathname);
@@ -85,7 +85,7 @@ TEST(SyscallExit, openat2X_failure)
85
85
how.mode = 0 ;
86
86
how.resolve = RESOLVE_BENEATH | RESOLVE_NO_MAGICLINKS;
87
87
assert_syscall_state (SYSCALL_FAILURE, " openat2" , syscall (__NR_openat2, dirfd, pathname, &how, sizeof (struct open_how )));
88
- int64_t errno_value = -errno;
88
+ int32_t errno_value = -errno;
89
89
90
90
/* =============================== TRIGGER SYSCALL ===========================*/
91
91
@@ -104,11 +104,11 @@ TEST(SyscallExit, openat2X_failure)
104
104
105
105
/* =============================== ASSERT PARAMETERS ===========================*/
106
106
107
- /* Parameter 1: fd (type: PT_FD ) */
108
- evt_test->assert_numeric_param (1 , ( int64_t ) errno_value);
107
+ /* Parameter 1: fd (type: PT_FD32 ) */
108
+ evt_test->assert_numeric_param (1 , errno_value);
109
109
110
- /* Parameter 2: dirfd (type: PT_FD ) */
111
- evt_test->assert_numeric_param (2 , ( int64_t ) PPM_AT_FDCWD);
110
+ /* Parameter 2: dirfd (type: PT_FD32 ) */
111
+ evt_test->assert_numeric_param (2 , PPM_AT_FDCWD);
112
112
113
113
/* Parameter 3: name (type: PT_FSPATH) */
114
114
evt_test->assert_charbuf_param (3 , pathname);
0 commit comments