From: Jan Kiszka <jan.kis...@siemens.com>

The status value is the pointer, not where the pointer points to.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

Not yet resolving the unexpected assertion, though.

 testsuite/smokey/y2038/syscall-tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/y2038/syscall-tests.c 
b/testsuite/smokey/y2038/syscall-tests.c
index 90bfe28d48..afbe8d42a6 100644
--- a/testsuite/smokey/y2038/syscall-tests.c
+++ b/testsuite/smokey/y2038/syscall-tests.c
@@ -150,7 +150,7 @@ static int run_thread(void *(*thread)(void *), void *arg, 
int exp_result)
        if (!__T(ret, pthread_join(tid, &status)))
                return ret;
 
-       res = *((long *) status);
+       res = (long)status;
 
        return (res == exp_result) ? 0 : ret;
 }
-- 
2.31.1

Reply via email to