diff options
author | delphij <delphij@FreeBSD.org> | 2008-04-23 21:06:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-04-23 21:06:51 +0000 |
commit | 6b7d75207628536a474b37340d955b403cec99aa (patch) | |
tree | eefa1873a48ad2f06f0d1c491c89695e643709f5 /lib/libthr/thread/thr_affinity.c | |
parent | 792d568d6d8f529648c76c67e723a9eabbb350c6 (diff) | |
download | FreeBSD-src-6b7d75207628536a474b37340d955b403cec99aa.zip FreeBSD-src-6b7d75207628536a474b37340d955b403cec99aa.tar.gz |
Avoid various shadowed variables. libthr is now almost WARNS=4 clean except
for some const dequalifiers that needs more careful investigation.
Ok'ed by: davidxu
Diffstat (limited to 'lib/libthr/thread/thr_affinity.c')
-rw-r--r-- | lib/libthr/thread/thr_affinity.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libthr/thread/thr_affinity.c b/lib/libthr/thread/thr_affinity.c index e233a3e..7a12a89 100644 --- a/lib/libthr/thread/thr_affinity.c +++ b/lib/libthr/thread/thr_affinity.c @@ -39,7 +39,7 @@ __weak_reference(_pthread_getaffinity_np, pthread_getaffinity_np); __weak_reference(_pthread_setaffinity_np, pthread_setaffinity_np); int -_pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpuset) +_pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpusetp) { struct pthread *curthread = _get_curthread(); lwpid_t tid; @@ -47,7 +47,7 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpuset) if (td == curthread) { error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, - -1, cpusetsize, cpuset); + -1, cpusetsize, cpusetp); if (error == -1) error = errno; } else { @@ -58,7 +58,7 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpuset) } tid = TID(td); error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid, - cpusetsize, cpuset); + cpusetsize, cpusetp); if (error == -1) error = errno; THR_THREAD_UNLOCK(curthread, td); @@ -67,7 +67,7 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpuset) } int -_pthread_getaffinity_np(pthread_t td, size_t cpusetsize, cpuset_t *cpuset) +_pthread_getaffinity_np(pthread_t td, size_t cpusetsize, cpuset_t *cpusetp) { struct pthread *curthread = _get_curthread(); lwpid_t tid; @@ -75,7 +75,7 @@ _pthread_getaffinity_np(pthread_t td, size_t cpusetsize, cpuset_t *cpuset) tid = TID(td); error = cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, - (td == curthread) ? -1 : tid, cpusetsize, cpuset); + (td == curthread) ? -1 : tid, cpusetsize, cpusetp); if (error == -1) error = errno; return (error); |