X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b1bf4b927630226493504bec19ea7356f8e70ff..4c8b729ca205a05b34613dfe73d5f1b542c189f6:/examples/simdag/schedule-dotload/sd_schedule-dotload.c diff --git a/examples/simdag/schedule-dotload/sd_schedule-dotload.c b/examples/simdag/schedule-dotload/sd_schedule-dotload.c index 67a27934e9..0abef9a3b2 100644 --- a/examples/simdag/schedule-dotload/sd_schedule-dotload.c +++ b/examples/simdag/schedule-dotload/sd_schedule-dotload.c @@ -1,6 +1,6 @@ /* simple test trying to load a DOT file. */ -/* Copyright (c) 2010-2016. The SimGrid Team. +/* Copyright (c) 2010-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -34,7 +34,6 @@ int main(int argc, char **argv) if(!dot){ XBT_CRITICAL("The dot file with the provided scheduling is wrong," " more information with the option : --log=sd_dotparse.thres:verbose"); - SD_exit(); exit(2); } @@ -74,14 +73,12 @@ int main(int argc, char **argv) sg_host_get_name(wsl[0]), sg_host_get_name(wsl[1]), SD_task_get_amount(task), SD_task_get_name(task)); break; default: - xbt_die("Task %s is of unknown kind %d", SD_task_get_name(task), SD_task_get_kind(task)); + xbt_die("Task %s is of unknown kind %u", SD_task_get_name(task), SD_task_get_kind(task)); } SD_task_destroy(task); } fclose(out); xbt_dynar_free_container(&dot); - /* exit */ - SD_exit(); return 0; }