From eca335fc0453d3680fd9f112574919e13fab31d2 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 6 Jan 2014 22:05:54 -0500 Subject: eliminate explicit (long) casts when making syscalls this practice came from very early, before internal/syscall.h defined macros that could accept pointer arguments directly and handle them correctly. aside from being ugly and unnecessary, it looks like it will be problematic when we add support for 32-bit ABIs on archs where registers (and syscall arguments) are 64-bit, e.g. x32 and mips n32. --- src/time/timer_getoverrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/time/timer_getoverrun.c') diff --git a/src/time/timer_getoverrun.c b/src/time/timer_getoverrun.c index 53361285..e7f891e4 100644 --- a/src/time/timer_getoverrun.c +++ b/src/time/timer_getoverrun.c @@ -8,5 +8,5 @@ int timer_getoverrun(timer_t t) pthread_t td = (void *)((uintptr_t)t << 1); t = (void *)(uintptr_t)(td->timer_id & INT_MAX); } - return syscall(SYS_timer_getoverrun, (long)t); + return syscall(SYS_timer_getoverrun, t); } -- cgit v1.2.1