Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / examples / c / io-file-remote / io-file-remote.c
index 26755c2fe3de13c193dd208e2641f915ebccb551..123e8b69288e07ecb160a64252e21d90d16314ef 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2020. 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);