about summary refs log tree commit diff
path: root/posix/spawnattr_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/spawnattr_setschedparam.c')
-rw-r--r--posix/spawnattr_setschedparam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/posix/spawnattr_setschedparam.c b/posix/spawnattr_setschedparam.c
index ffcd893d97..39d6b7a183 100644
--- a/posix/spawnattr_setschedparam.c
+++ b/posix/spawnattr_setschedparam.c
@@ -22,10 +22,10 @@
 /* Store scheduling parameters in the attribute structure.  */
 int
 posix_spawnattr_setschedparam (posix_spawnattr_t *attr,
-			       const struct shed_param *schedparam)
+			       const struct sched_param *schedparam)
 {
-  /* Store the flag word.  */
-  attr->__flags = flags;
+  /* Store the scheduling parameters.  */
+  attr->__sp = *schedparam;
 
   return 0;
 }