X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39f04a33f18094667adcb46abf9dd5c1f40181f9..cf90e56150ac95ab17f0c421f973597f7c55c054:/src/simix/smx_io.c?ds=sidebyside diff --git a/src/simix/smx_io.c b/src/simix/smx_io.c index 10b39e9207..969991b74e 100644 --- a/src/simix/smx_io.c +++ b/src/simix/smx_io.c @@ -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)