X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fb5ab7a1b6fc59ea80553579f897faa7c97733b0..444ec96fae3799e0a6ec931c17a66a409ad409af:/testsuite/surf/surf_usage.c diff --git a/testsuite/surf/surf_usage.c b/testsuite/surf/surf_usage.c index e613e7f2af..36ebd7a32a 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" @@ -32,7 +36,6 @@ const char *string_action(e_surf_action_state_t state) } } - void test(char *platform); void test(char *platform) { @@ -131,10 +134,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 +148,7 @@ int main(int argc, char **argv) return 1; } test(argv[1]); + + surf_exit(); return 0; }