X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..6a908b79ea45f85f305620c09375b72483b7eee9:/examples/c/io-file-remote/io-file-remote.c diff --git a/examples/c/io-file-remote/io-file-remote.c b/examples/c/io-file-remote/io-file-remote.c index bbff29d12c..123e8b6928 100644 --- a/examples/c/io-file-remote/io-file-remote.c +++ b/examples/c/io-file-remote/io-file-remote.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2023. 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. */ @@ -53,7 +53,7 @@ int main(int argc, char** argv) size_t host_count = sg_host_count(); sg_host_t* hosts = sg_host_list(); - for (long i = 0; i < host_count; i++) { + for (size_t i = 0; i < host_count; i++) { unsigned int disk_count; sg_disk_t* disks; sg_host_get_disks(hosts[i], &disk_count, &disks); @@ -66,7 +66,7 @@ int main(int argc, char** argv) simgrid_run(); - for (long i = 0; i < host_count; i++) { + for (size_t i = 0; i < host_count; i++) { unsigned int disk_count; sg_disk_t* disks; sg_host_get_disks(hosts[i], &disk_count, &disks);