diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/timer_settime.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/timer_settime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/timer_settime.c b/sysdeps/unix/sysv/linux/timer_settime.c index c97a9e9..01c6257 100644 --- a/sysdeps/unix/sysv/linux/timer_settime.c +++ b/sysdeps/unix/sysv/linux/timer_settime.c @@ -28,17 +28,17 @@ __timer_settime64 (timer_t timerid, int flags, const struct __itimerspec64 *value, struct __itimerspec64 *ovalue) { - struct timer *kt = (struct timer *) timerid; + kernel_timer_t ktimerid = timerid_to_kernel_timer (timerid); #ifdef __ASSUME_TIME64_SYSCALLS # ifndef __NR_timer_settime64 # define __NR_timer_settime64 __NR_timer_settime # endif - return INLINE_SYSCALL_CALL (timer_settime64, kt->ktimerid, flags, value, + return INLINE_SYSCALL_CALL (timer_settime64, ktimerid, flags, value, ovalue); #else # ifdef __NR_timer_settime64 - int ret = INLINE_SYSCALL_CALL (timer_settime64, kt->ktimerid, flags, value, + int ret = INLINE_SYSCALL_CALL (timer_settime64, ktimerid, flags, value, ovalue); if (ret == 0 || errno != ENOSYS) return ret; @@ -55,7 +55,7 @@ __timer_settime64 (timer_t timerid, int flags, its32.it_interval = valid_timespec64_to_timespec (value->it_interval); its32.it_value = valid_timespec64_to_timespec (value->it_value); - int retval = INLINE_SYSCALL_CALL (timer_settime, kt->ktimerid, flags, + int retval = INLINE_SYSCALL_CALL (timer_settime, ktimerid, flags, &its32, ovalue ? &oits32 : NULL); if (retval == 0 && ovalue) { |