aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-02-03 07:58:23 -0800
committerGravatar vjpai <vpai@google.com>2016-02-03 07:58:23 -0800
commit574020edf11e7d1a83fa6222c2bf6358c00aabf1 (patch)
tree7342e249a7d19de87a572ef59f43968e58a25cce /test/cpp
parentac1ac3ab3db628f7643532b515f62d113dcb9700 (diff)
Forgot to put this in the Mac version
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/qps/limit_cores.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/qps/limit_cores.cc b/test/cpp/qps/limit_cores.cc
index c2f3ad8fde..7dac54a688 100644
--- a/test/cpp/qps/limit_cores.cc
+++ b/test/cpp/qps/limit_cores.cc
@@ -46,11 +46,11 @@ namespace testing {
#define _GNU_SOURCE
#endif
#include <sched.h>
-int LimitCores(const int *cores, int cores_size) {
+int LimitCores(const int* cores, int cores_size) {
const int num_cores = gpr_cpu_num_cores();
int cores_set = 0;
- cpu_set_t *cpup = CPU_ALLOC(num_cores);
+ cpu_set_t* cpup = CPU_ALLOC(num_cores);
GPR_ASSERT(cpup);
const size_t size = CPU_ALLOC_SIZE(num_cores);
CPU_ZERO_S(size, cpup);
@@ -74,7 +74,7 @@ int LimitCores(const int *cores, int cores_size) {
}
#else
// LimitCores is not currently supported for non-Linux platforms
-int LimitCores(std::vector<int> core_vec) { return gpr_cpu_num_cores(); }
+int LimitCores(const int*, int) { return gpr_cpu_num_cores(); }
#endif
} // namespace testing
} // namespace grpc