Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clearly state that we don't care about the return code of actors
[simgrid.git] / examples / s4u / io-file-remote / s4u-io-file-remote.cpp
index 3579324..a3b2fd9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2020. 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. */
@@ -11,7 +11,7 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(remote_io, "Messages specific for this io example");
 
-static int host(int argc, char* argv[])
+static void host(int argc, char* argv[])
 {
   simgrid::s4u::File file(argv[1], nullptr);
   const char* filename = file.get_path();
@@ -32,7 +32,6 @@ static int host(int argc, char* argv[])
       file.remote_copy(simgrid::s4u::Host::by_name(argv[2]), argv[3]);
     }
   }
-  return 0;
 }
 
 int main(int argc, char** argv)