Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More coding style updates for sg_disk.
[simgrid.git] / examples / c / io-file-system / io-file-system.c
index c860102..988253b 100644 (file)
@@ -22,14 +22,14 @@ static void show_info(unsigned int disk_count, const sg_disk_t* disks)
   XBT_INFO("Storage info on %s:", sg_host_self_get_name());
 
   for (unsigned int i = 0; i < disk_count; i++) {
-    sg_disk_t d = disks[i];
+    const_sg_disk_t d = disks[i];
     // Retrieve disk's information
-    XBT_INFO("    %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_name(d), sg_disk_get_mount_point(d),
+    XBT_INFO("    %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_get_name(d), sg_disk_get_mount_point(d),
              sg_disk_get_size_used(d), sg_disk_get_size_free(d), sg_disk_get_size(d));
   }
 }
 
-static void host(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void host(int argc, char* argv[])
 {
   unsigned int disk_count;
   sg_disk_t* disks;
@@ -37,7 +37,7 @@ static void host(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 
   show_info(disk_count, disks);
 
-  // Open an non-existing file to create it
+  // Open a non-existing file to create it
   const char* filename = "/scratch/tmp/data.txt";
   sg_file_t file       = sg_file_open(filename, NULL);