X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/21fe278c8460849931b37ccde22e944edec46f71..62dceedf62ca9df19fd3afee1458e21d9f211c5a:/examples/s4u/io-file-remote/s4u-io-file-remote.cpp diff --git a/examples/s4u/io-file-remote/s4u-io-file-remote.cpp b/examples/s4u/io-file-remote/s4u-io-file-remote.cpp index 35793244f7..a3b2fd919f 100644 --- a/examples/s4u/io-file-remote/s4u-io-file-remote.cpp +++ b/examples/s4u/io-file-remote/s4u-io-file-remote.cpp @@ -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)