aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-22 19:32:45 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-22 19:32:45 +0000
commit9708780004abee24d2c49fffe670820e36029377 (patch)
treea8fd5c9a1b34606342c84a9418778a8f90d8c3c0
parent6873f5c70648a7d05c58277e9e8e076460a01a4c (diff)
downloadglibc-9708780004abee24d2c49fffe670820e36029377.zip
glibc-9708780004abee24d2c49fffe670820e36029377.tar.gz
glibc-9708780004abee24d2c49fffe670820e36029377.tar.bz2
(__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
-rw-r--r--nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c
index 8d3f353..89edef6 100644
--- a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c
@@ -34,7 +34,7 @@ __pthread_getaffinity_new (pthread_t th, size_t cpusetsize, cpu_set_t *cpuset)
INTERNAL_SYSCALL_DECL (err);
int res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, pd->tid,
- MIN (UINT_MAX, cpusetsize), cpuset);
+ MIN (INT_MAX, cpusetsize), cpuset);
if (INTERNAL_SYSCALL_ERROR_P (res, err))
return INTERNAL_SYSCALL_ERRNO (res, err);