diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 07:27:02 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 07:27:02 +0000 |
commit | 4ace63889357f5ffc8b96a8a6144352e7ce56eec (patch) | |
tree | 21cae77af0719690b1255038635714a30e4f073d /libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | |
parent | f5faeff83458b4dc618ca83edd2dd33dbe63c15d (diff) | |
download | uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.bz2 uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.xz |
Big set of various patches to get the NPTL libraries to build and link.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c b/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c index ca84f1c9b..1842b275a 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c @@ -58,7 +58,8 @@ __pthread_attr_setaffinity_new (pthread_attr_t *attr, size_t cpusetsize, /* Check whether the new bitmask has any bit set beyond the last one the kernel accepts. */ - for (size_t cnt = __kernel_cpumask_size; cnt < cpusetsize; ++cnt) + size_t cnt; + for (cnt = __kernel_cpumask_size; cnt < cpusetsize; ++cnt) if (((char *) cpuset)[cnt] != '\0') /* Found a nonzero byte. This means the user request cannot be fulfilled. */ |