Type of second __sched_cpucount should be "const cpu_set_t*".

Test: none

Bug: 77341596
Change-Id: Ib4f1a75d2cfe147855b4d5f0203f4a64c22c116a
This commit is contained in:
Tong Shen 2018-04-13 15:21:18 -07:00
parent 48227e6602
commit 37793a1892
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@
#define _GNU_SOURCE 1
#include <sched.h>
int __sched_cpucount(size_t setsize, cpu_set_t* set) {
int __sched_cpucount(size_t setsize, const cpu_set_t* set) {
int nn = 0;
int nn_max = setsize / sizeof(__CPU_BITTYPE);
int count = 0;

View file

@ -143,7 +143,7 @@ void __sched_cpufree(cpu_set_t* __set) __INTRODUCED_IN(12);
#define CPU_COUNT_S(setsize, set) __sched_cpucount((setsize), (set))
int __sched_cpucount(size_t __set_size, cpu_set_t* __set) __INTRODUCED_IN(12);
int __sched_cpucount(size_t __set_size, const cpu_set_t* __set) __INTRODUCED_IN(12);
#endif /* __USE_GNU */