X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/06f0d1d110338b3eb607633583183a076f7d2722..930dda2576b57f81598900641221a2efead20090:/testsuite/surf/surf_usage.c diff --git a/testsuite/surf/surf_usage.c b/testsuite/surf/surf_usage.c index d7a2749852..7296f609e4 100644 --- a/testsuite/surf/surf_usage.c +++ b/testsuite/surf/surf_usage.c @@ -6,6 +6,10 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ + +#ifdef __BORLANDC__ +#pragma hdrstop +#endif #include #include "surf/surf.h" @@ -100,7 +104,7 @@ void test(char *platform) do { surf_action_t action = NULL; now = surf_get_clock(); - DEBUG1("Next Event : " "%lg" "\n", now); + DEBUG1("Next Event : " "%g" "\n", now); DEBUG0("\t CPU actions\n"); while ((action = xbt_swag_extract(surf_cpu_resource->common_public->states. @@ -131,10 +135,12 @@ void test(char *platform) } while (surf_solve()>=0.0); DEBUG0("Simulation Terminated\n"); - - surf_finalize(); } +#ifdef __BORLANDC__ +#pragma argsused +#endif + int main(int argc, char **argv) { surf_init(&argc, argv); /* Initialize some common structures */ @@ -143,5 +149,7 @@ int main(int argc, char **argv) return 1; } test(argv[1]); + + surf_exit(); return 0; }