Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill redundant blank lines.
[simgrid.git] / examples / cpp / exec-failure / s4u-exec-failure.cpp
index 9d5d1ad..4bfc1d2 100644 (file)
@@ -36,7 +36,7 @@ static void dispatcher(sg4::Host* host1, sg4::Host* host2)
   try {
     long index = sg4::Exec::wait_any(pending_execs);
     XBT_INFO("Wait any returned index %ld (exec on %s)", index, pending_execs.at(index)->get_host()->get_cname());
-  } catch (simgrid::HostFailureException& e) {
+  } catch (const simgrid::HostFailureException&) {
     XBT_INFO("Dispatcher has experienced a host failure exception, so it knows that something went wrong");
     XBT_INFO("Now it needs to figure out which of the two execs failed by looking at their state");
   }
@@ -46,7 +46,7 @@ static void dispatcher(sg4::Host* host1, sg4::Host* host2)
 
   try {
     pending_execs[1]->wait();
-  } catch (simgrid::HostFailureException& e) {
+  } catch (const simgrid::HostFailureException& e) {
     XBT_INFO("Waiting on a FAILED exec raises an exception: '%s'", e.what());
   }
   pending_execs.pop_back();
@@ -66,7 +66,6 @@ static void host_killer(sg4::Host* to_kill)
 
 int main(int argc, char** argv)
 {
-
   sg4::Engine engine(&argc, argv);
 
   auto* zone  = sg4::create_full_zone("AS0");