From: Frederic Suter Date: Fri, 27 Mar 2020 14:58:45 +0000 (+0100) Subject: please sonar X-Git-Tag: v3.26~691 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/afc75f7692eff7f345826abe82d1e23ac1c18763 please sonar --- diff --git a/examples/c/io-file-system/io-file-system.c b/examples/c/io-file-system/io-file-system.c index c860102f2b..29b44e132e 100644 --- a/examples/c/io-file-system/io-file-system.c +++ b/examples/c/io-file-system/io-file-system.c @@ -22,7 +22,7 @@ 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), sg_disk_get_size_used(d), sg_disk_get_size_free(d), sg_disk_get_size(d));