projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix aliasing-based undefined behavior in string functions
[musl]
/
src
/
time
/
timer_gettime.c
diff --git
a/src/time/timer_gettime.c
b/src/time/timer_gettime.c
index
1d90207
..
ed6d8d6
100644
(file)
--- a/
src/time/timer_gettime.c
+++ b/
src/time/timer_gettime.c
@@
-8,5
+8,5
@@
int timer_gettime(timer_t t, struct itimerspec *val)
pthread_t td = (void *)((uintptr_t)t << 1);
t = (void *)(uintptr_t)(td->timer_id & INT_MAX);
}
- return syscall(SYS_timer_gettime,
(long)
t, val);
+ return syscall(SYS_timer_gettime, t, val);
}