X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6b23c846948f7f89277f75e7c42f3942b31b8d3..a6842b518fd3973d810bae84ad5110c26b20953b:/examples/msg/io/file_unlink.c diff --git a/examples/msg/io/file_unlink.c b/examples/msg/io/file_unlink.c index 9fc88ca303..34f7dc0dfd 100644 --- a/examples/msg/io/file_unlink.c +++ b/examples/msg/io/file_unlink.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2010, 2012-2014. The SimGrid Team. +/* Copyright (c) 2008-2010, 2012-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -13,8 +13,7 @@ #include #include -#include "msg/msg.h" -#include "surf/surf_private.h" +#include "simgrid/msg.h" int host(int argc, char *argv[]); @@ -70,9 +69,5 @@ int main(int argc, char **argv) res = MSG_main(); XBT_INFO("Simulation time %g", MSG_get_clock()); - if (res == MSG_OK) - return 0; - else - return 1; - + return res != MSG_OK; }