about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sched_getaffinity.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2004-03-20 06:42:17 +0000
committerAndreas Jaeger <aj@suse.de>2004-03-20 06:42:17 +0000
commit770c415706f847b5e55019b014f0349c339a213c (patch)
tree2dc9642556061f2573f900078b8ac99ada35390d /sysdeps/unix/sysv/linux/sched_getaffinity.c
parent07bd2a3fda47e7cfa83e808eb99a0da9d1184a30 (diff)
downloadglibc-770c415706f847b5e55019b014f0349c339a213c.tar.gz
glibc-770c415706f847b5e55019b014f0349c339a213c.tar.xz
glibc-770c415706f847b5e55019b014f0349c339a213c.zip
(__sched_getaffinity_old): Fix interface.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sched_getaffinity.c')
-rw-r--r--sysdeps/unix/sysv/linux/sched_getaffinity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sched_getaffinity.c b/sysdeps/unix/sysv/linux/sched_getaffinity.c
index 09787f277f..8503843788 100644
--- a/sysdeps/unix/sysv/linux/sched_getaffinity.c
+++ b/sysdeps/unix/sysv/linux/sched_getaffinity.c
@@ -46,10 +46,10 @@ versioned_symbol (libc, __sched_getaffinity_new, sched_getaffinity,
 # if SHLIB_COMPAT(libc, 2_3_3, 2_3_4)
 int
 attribute_compat_text_section
-__sched_getaffinity_old (const pthread_attr_t *attr, cpu_set_t *cpuset)
+__sched_getaffinity_old (pid_t pid, cpu_set_t *cpuset)
 {
   /* The old interface by default assumed a 1024 processor bitmap.  */
-  return __sched_getaffinity_new (attr, 128, cpuset);
+  return __sched_getaffinity_new (pid, 128, cpuset);
 }
 compat_symbol (libc, __sched_getaffinity_old, sched_getaffinity, GLIBC_2_3_3);
 # endif