File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -923,21 +923,21 @@ fn get_concurrency() -> usize {
923923 target_os = "netbsd" ) ) ]
924924 fn num_cpus ( ) -> usize {
925925 let mut cpus: libc:: c_uint = 0 ;
926- let mut CPUS_SIZE = std:: mem:: size_of_val ( & cpus) ;
926+ let mut cpus_size = std:: mem:: size_of_val ( & cpus) ;
927927 let mut mib = [ libc:: CTL_HW , libc:: HW_AVAILCPU , 0 , 0 ] ;
928928
929929 unsafe {
930930 libc:: sysctl ( mib. as_mut_ptr ( ) , 2 ,
931931 & mut cpus as * mut _ as * mut _ ,
932- & mut CPUS_SIZE as * mut _ as * mut _ ,
932+ & mut cpus_size as * mut _ as * mut _ ,
933933 0 as * mut _ , 0 ) ;
934934 }
935935 if cpus < 1 {
936936 mib[ 1 ] = libc:: HW_NCPU ;
937937 unsafe {
938938 libc:: sysctl ( mib. as_mut_ptr ( ) , 2 ,
939939 & mut cpus as * mut _ as * mut _ ,
940- & mut CPUS_SIZE as * mut _ as * mut _ ,
940+ & mut cpus_size as * mut _ as * mut _ ,
941941 0 as * mut _ , 0 ) ;
942942 }
943943 if cpus < 1 {
You can’t perform that action at this time.
0 commit comments