summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-attr-setschedparam.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2011-09-07 18:40:56 +0200
committerThomas Schwinge <thomas@schwinge.name>2011-09-07 18:40:56 +0200
commitb9d918c0f28908c7012c9d4f65f1cf2bc103fc4b (patch)
treeaa3ad24977c9dcbe1aed672431d47f035cad85ae /sysdeps/generic/pt-attr-setschedparam.c
parent0d733170f4056ffef9ae7e3c1f0e627b47433a97 (diff)
parentc2a1b325b7b2ce0d3d16bd1e9430e1d7eddce71e (diff)
Merge commit 'refs/top-bases/t/fix_have_kernel_resources' into t/fix_have_kernel_resources
Diffstat (limited to 'sysdeps/generic/pt-attr-setschedparam.c')
-rw-r--r--sysdeps/generic/pt-attr-setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/pt-attr-setschedparam.c b/sysdeps/generic/pt-attr-setschedparam.c
index 18a575e..5459f10 100644
--- a/sysdeps/generic/pt-attr-setschedparam.c
+++ b/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;
}