projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix namespace violation in sys/shm.h
[musl]
/
src
/
thread
/
pthread_rwlockattr_setpshared.c
diff --git
a/src/thread/pthread_rwlockattr_setpshared.c
b/src/thread/pthread_rwlockattr_setpshared.c
index
1f47f09
..
e706197
100644
(file)
--- a/
src/thread/pthread_rwlockattr_setpshared.c
+++ b/
src/thread/pthread_rwlockattr_setpshared.c
@@
-3,6
+3,6
@@
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
-
*(int *)a
= pshared;
+
a->__attr[0]
= pshared;
return 0;
}
return 0;
}