summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/generic/pt-attr-setschedparam.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-26 22:15:02 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-26 22:15:02 +0000
commite676fab73c072e74db879c554ce3f7b5cd12628c (patch)
treef01c64bad337052187ce285ed495960dc7e7c875 /libpthread/sysdeps/generic/pt-attr-setschedparam.c
parente842774912953a7e49dad0bad4461a35cb51d9f6 (diff)
parent30f3fdbfbf9cfbbd3f6620b26d6f5a821d890368 (diff)
Merge branch 'upstream-merged'
Diffstat (limited to 'libpthread/sysdeps/generic/pt-attr-setschedparam.c')
-rw-r--r--libpthread/sysdeps/generic/pt-attr-setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/sysdeps/generic/pt-attr-setschedparam.c b/libpthread/sysdeps/generic/pt-attr-setschedparam.c
index 18a575ec..5459f108 100644
--- a/libpthread/sysdeps/generic/pt-attr-setschedparam.c
+++ b/libpthread/sysdeps/generic/pt-attr-setschedparam.c
@@ -30,7 +30,7 @@ pthread_attr_setschedparam (pthread_attr_t *attr,
if (memcmp (param, &__pthread_default_attr.schedparam,
sizeof *param) == 0)
{
- attr->schedparam = *param;
+ memcpy (&attr->schedparam, param, sizeof *param);
return 0;
}