make pthread attribute types structs, even when they just have one field
[musl] / src / thread / pthread_rwlockattr_setpshared.c
index 1f47f09..e706197 100644 (file)
@@ -3,6 +3,6 @@
 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared)
 {
        if (pshared > 1U) return EINVAL;
-       *(int *)a = pshared;
+       a->__attr[0] = pshared;
        return 0;
 }