[Glibc-bsd-commits] r2819 - trunk/glibc-ports/kfreebsd/bits

Aurelien Jarno aurel32 at alioth.debian.org
Sun Nov 8 13:50:45 UTC 2009


Author: aurel32
Date: 2009-11-08 13:50:45 +0000 (Sun, 08 Nov 2009)
New Revision: 2819

Modified:
   trunk/glibc-ports/kfreebsd/bits/sched.h
Log:
Allow const argument to CPU_ISSET()



Modified: trunk/glibc-ports/kfreebsd/bits/sched.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/sched.h	2009-11-04 15:31:40 UTC (rev 2818)
+++ trunk/glibc-ports/kfreebsd/bits/sched.h	2009-11-08 13:50:45 UTC (rev 2819)
@@ -132,7 +132,7 @@
   (__extension__							      \
    ({ size_t __cpu = (cpu);						      \
       __cpu < 8 * (setsize)						      \
-      ? ((((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)]	      \
+      ? ((((const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)]	      \
 	  & __CPUMASK (__cpu))) != 0					      \
       : 0; }))
 




More information about the Glibc-bsd-commits mailing list