From f9b70a2e6b1e4076a895a8492e614c77d5eb4bf7 Mon Sep 17 00:00:00 2001 From: Millian Poquet Date: Tue, 16 Oct 2018 18:34:16 +0200 Subject: [PATCH] [examples] smpi-replay-mmd: static + cleanup --- .../replay_multiple_manual.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp b/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp index a6d10c1db1..59aeb70f43 100644 --- a/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp +++ b/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp @@ -44,8 +44,8 @@ struct Job { }; // ugly globals to avoid creating structures for giving args to processes -std::vector hosts; -int noise_between_jobs; +static std::vector hosts; +static int noise_between_jobs; static bool job_comparator(const Job* j1, const Job* j2) { @@ -54,13 +54,7 @@ static bool job_comparator(const Job* j1, const Job* j2) return j1->starting_time < j2->starting_time; } -struct s_smpi_replay_process_args { - Job* job; - simgrid::s4u::BarrierPtr barrier; - int rank; -}; - -void smpi_replay_process(Job* job, simgrid::s4u::BarrierPtr barrier, int rank) +static void smpi_replay_process(Job* job, simgrid::s4u::BarrierPtr barrier, int rank) { // Prepare data for smpi_replay_run int argc = 5; -- 2.20.1