aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/pthread_setaffinity_np.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/pthread_setaffinity_np.3 b/man3/pthread_setaffinity_np.3
index 24499f550c..57aaf12515 100644
--- a/man3/pthread_setaffinity_np.3
+++ b/man3/pthread_setaffinity_np.3
@@ -194,13 +194,13 @@ main(int argc, char *argv[])
for (j = 0; j < 8; j++)
CPU_SET(j, &cpuset);
- s = pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset);
+ s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);
if (s != 0)
handle_error_en(s, "pthread_setaffinity_np");
/* Check the actual affinity mask assigned to the thread */
- s = pthread_getaffinity_np(thread, sizeof(cpu_set_t), &cpuset);
+ s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);
if (s != 0)
handle_error_en(s, "pthread_getaffinity_np");