Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dict/32-bit combo from hell!
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 19 Jun 2017 13:00:00 +0000 (15:00 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 19 Jun 2017 13:00:00 +0000 (15:00 +0200)
examples/msg/io-storage/io-storage.c

index 974de4d..c4731ae 100644 (file)
@@ -100,11 +100,11 @@ static int host(int argc, char *argv[]){
   char* mountname;
   xbt_dict_t content;
   char* path;
-  sg_size_t size;
+  sg_size_t* psize;
   xbt_dict_foreach(contents, curs, mountname, content){
     XBT_INFO("Print the content of mount point: %s",mountname);
-    xbt_dict_foreach(content,curs2,path,size){
-      XBT_INFO("%s size: %llu bytes", path, *((sg_size_t*)size));
+    xbt_dict_foreach (content, curs2, path, psize) {
+      XBT_INFO("%s size: %llu bytes", path, *psize);
     }
     xbt_dict_free(&content);
   }