summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-27 09:44:30 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-27 09:44:30 -0500
commit1c322f2f0a9173a3ae8c8bfa12d5d8e92fb5d0ab (patch)
treeeab1ad10464653baaaa161e10992a0ff2a7ca146 /src
parente6dcebd5efa2d390f0a24dc11444024e9fd1990c (diff)
downloadmusl-1c322f2f0a9173a3ae8c8bfa12d5d8e92fb5d0ab.tar.gz
musl-1c322f2f0a9173a3ae8c8bfa12d5d8e92fb5d0ab.tar.bz2
musl-1c322f2f0a9173a3ae8c8bfa12d5d8e92fb5d0ab.tar.xz
musl-1c322f2f0a9173a3ae8c8bfa12d5d8e92fb5d0ab.zip
fix some restrict-qualifier mismatches in newly added interfaces
these should have little/no practical impact but they're needed for strict conformance.
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_attr_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/pthread_attr_get.c b/src/thread/pthread_attr_get.c
index e4650e42..ad913c5a 100644
--- a/src/thread/pthread_attr_get.c
+++ b/src/thread/pthread_attr_get.c
@@ -11,7 +11,7 @@ int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict
return 0;
}
-int pthread_attr_getinheritsched(const pthread_attr_t *a, int *inherit)
+int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit)
{
*inherit = a->_a_sched;
return 0;
@@ -23,7 +23,7 @@ int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_pa
return 0;
}
-int pthread_attr_getschedpolicy(const pthread_attr_t *a, int *policy)
+int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy)
{
*policy = a->_a_policy;
return 0;