Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix MSG_file_write bug
[simgrid.git] / examples / msg / io / file_unlink.c
index a604a18..bb74c9f 100644 (file)
@@ -31,7 +31,7 @@ int host(int argc, char *argv[])
 {
   msg_file_t file = NULL;
   char* mount = xbt_strdup("/home");
-  sg_storage_size_t write;
+  sg_size_t write;
 
   // First open
   XBT_INFO("\tOpen file '%s'",FILENAME1);
@@ -47,7 +47,7 @@ int host(int argc, char *argv[])
 
   // Write into the new file
   write = MSG_file_write(file,100000);  // Write for 100Ko
-  XBT_INFO("\tHave written %zu on %s",write,file->fullname);
+  XBT_INFO("\tHave written %llu on %s",write,file->fullname);
 
   // Close the file
   XBT_INFO("\tClose file '%s'",file->fullname);