]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_io.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
oops, forgot to perform the actual change of path in 3854ce9a5 .
[simgrid.git] / src / simix / smx_io.c
index 10b39e920724bc9eca96d768f1d26a30e93e4c66..969991b74ed68aadd9f2fb111e564116c2532df2 100644 (file)
@@ -201,11 +201,9 @@ int SIMIX_file_unlink(smx_process_t process, smx_file_t fd)
            sg_host_name(host));
   }
 
-  if (surf_workstation_unlink(host, fd->surf_file)){
-    xbt_free(fd);
-    return 1;
-  } else
-    return 0;
+  int res = surf_workstation_unlink(host, fd->surf_file);
+  xbt_free(fd);
+  return !!res;
 }
 
 sg_size_t SIMIX_pre_file_get_size(smx_simcall_t simcall, smx_file_t fd)