From 6ca5d52bd2888b0871c9e94da2cd3d5cba796a3a Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Sat, 5 Sep 2015 05:03:48 +0300 Subject: [PATCH] get_num_cpus function should be static No need to export this symbol. `rust_get_num_cpus` is exported. --- src/rt/rust_builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c index 37ce30d7066f7..cf497438a6b75 100644 --- a/src/rt/rust_builtin.c +++ b/src/rt/rust_builtin.c @@ -83,7 +83,7 @@ rust_dirent_t_size() { } #if defined(__BSD__) -int +static int get_num_cpus() { /* swiped from http://stackoverflow.com/questions/150355/ programmatically-find-the-number-of-cores-on-a-machine */ @@ -110,7 +110,7 @@ get_num_cpus() { return numCPU; } #elif defined(__GNUC__) -int +static int get_num_cpus() { return sysconf(_SC_NPROCESSORS_ONLN); }