Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / examples / s4u / io-dependent / s4u-io-dependent.cpp
index ba18226..58e4228 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -28,9 +28,9 @@ static void test()
   // 'bob_write' is a successor of 'bob_compute'
   // 'carl_read' is a successor of 'bob_write'
   // 'carl_compute' is a successor of 'carl_read'
-  bob_compute->add_successor(bob_write.get());
-  bob_write->add_successor(carl_read.get());
-  carl_read->add_successor(carl_compute.get());
+  bob_compute->add_successor(bob_write);
+  bob_write->add_successor(carl_read);
+  carl_read->add_successor(carl_compute);
 
   // Start the activities.
   bob_compute->start();