aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index e2f485b1..51d9db99 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -1171,7 +1171,6 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
int r;
int allDone = 0;
struct get_pattern_ctx gpctx;
- int n_cpus;
if ( n_proc > MAX_NUM_WORKERS ) {
ERROR("Number of workers (%i) is too large. Using %i\n",
@@ -1180,7 +1179,7 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
}
#ifdef HAVE_SCHED_SETAFFINITY
- n_cpus = get_nprocs();
+ int n_cpus = get_nprocs();
if ( n_proc > n_cpus ) {
ERROR("WARNING: Number of workers (%i) is larger than the "
"number of available CPUs (%i)\n", n_proc, n_cpus);