diff options
Diffstat (limited to 'src/core/support/cpu_linux.c')
-rw-r--r-- | src/core/support/cpu_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/cpu_linux.c b/src/core/support/cpu_linux.c index 922b61c3c5..d800628806 100644 --- a/src/core/support/cpu_linux.c +++ b/src/core/support/cpu_linux.c @@ -75,7 +75,7 @@ #include <grpc/support/log.h> -int gpr_cpu_num_cores() { +int gpr_cpu_num_cores(void) { static int ncpus = 0; if (ncpus == 0) { ncpus = sysconf(_SC_NPROCESSORS_ONLN); @@ -87,7 +87,7 @@ int gpr_cpu_num_cores() { return ncpus; } -int gpr_cpu_current_cpu() { +int gpr_cpu_current_cpu(void) { int cpu = sched_getcpu(); if (cpu < 0) { gpr_log(GPR_ERROR, "Error determining current CPU: %s\n", strerror(errno)); |