client: fix compile warnings and errors.

This commit is contained in:
Charlie Fenton 2014-11-25 22:15:56 -08:00
parent a099d6a630
commit c647c8d72a
1 changed files with 3 additions and 3 deletions

View File

@ -1260,9 +1260,6 @@ int HOST_INFO::get_cpu_info() {
#if LINUX_LIKE_SYSTEM #if LINUX_LIKE_SYSTEM
parse_cpuinfo_linux(*this); parse_cpuinfo_linux(*this);
#elif defined( __APPLE__) #elif defined( __APPLE__)
int mib[2];
size_t len;
get_cpu_info_mac(*this); get_cpu_info_mac(*this);
#elif defined(__EMX__) #elif defined(__EMX__)
CPU_INFO_t cpuInfo; CPU_INFO_t cpuInfo;
@ -1366,6 +1363,9 @@ int HOST_INFO::get_cpu_count() {
p_ncpus = sysconf(_SC_NPROCESSORS_ONLN); p_ncpus = sysconf(_SC_NPROCESSORS_ONLN);
#elif defined(HAVE_SYS_SYSCTL_H) && defined(CTL_HW) && defined(HW_NCPU) #elif defined(HAVE_SYS_SYSCTL_H) && defined(CTL_HW) && defined(HW_NCPU)
// Get number of CPUs // Get number of CPUs
int mib[2];
size_t len;
mib[0] = CTL_HW; mib[0] = CTL_HW;
mib[1] = HW_NCPU; mib[1] = HW_NCPU;
len = sizeof(p_ncpus); len = sizeof(p_ncpus);