summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-attr-getschedparam.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
commit494cf4879f4ad468ba7c5d02e756db20df8822c2 (patch)
tree495ac5b094691030654c2bb2259c9fe0f101cc7f /sysdeps/generic/pt-attr-getschedparam.c
parentc28241162c00127bb5c0d03bbbbfc835a15e8f68 (diff)
parentc2a1b325b7b2ce0d3d16bd1e9430e1d7eddce71e (diff)
Merge commit 'refs/top-bases/t/fix_inline' into t/fix_inline
Diffstat (limited to 'sysdeps/generic/pt-attr-getschedparam.c')
-rw-r--r--sysdeps/generic/pt-attr-getschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/pt-attr-getschedparam.c b/sysdeps/generic/pt-attr-getschedparam.c
index 25afebd..6c3f15b 100644
--- a/sysdeps/generic/pt-attr-getschedparam.c
+++ b/sysdeps/generic/pt-attr-getschedparam.c
@@ -26,6 +26,6 @@ int
pthread_attr_getschedparam (const pthread_attr_t *attr,
struct sched_param *param)
{
- *param = attr->schedparam;
+ memcpy (param, &attr->schedparam, sizeof *param);
return 0;
}