use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / thread / pthread_rwlockattr_getpshared.c
index 0217bf4..02fd8c8 100644 (file)
@@ -1,6 +1,6 @@
 #include "pthread_impl.h"
 
-int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *a, int *pshared)
+int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared)
 {
        *pshared = *(int *)a;
        return 0;