use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / thread / pthread_cond_timedwait.c
index 1d0f578..1f25c8e 100644 (file)
@@ -36,7 +36,7 @@ static void cleanup(void *p)
        pthread_mutex_lock(cm->m);
 }
 
-int pthread_cond_timedwait(pthread_cond_t *c, pthread_mutex_t *m, const struct timespec *ts)
+int pthread_cond_timedwait(pthread_cond_t *restrict c, pthread_mutex_t *restrict m, const struct timespec *restrict ts)
 {
        struct cm cm = { .c=c, .m=m };
        int r, e=0, seq;