X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/06f0d1d110338b3eb607633583183a076f7d2722..df5b50bcc705cf690e4dfaf22552673d0e0b3b25:/testsuite/surf/surf_usage2.c?ds=sidebyside diff --git a/testsuite/surf/surf_usage2.c b/testsuite/surf/surf_usage2.c index 36da616329..e3af4cf458 100644 --- a/testsuite/surf/surf_usage2.c +++ b/testsuite/surf/surf_usage2.c @@ -6,6 +6,9 @@ /* 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" @@ -42,9 +45,6 @@ void test(char *platform) surf_action_t actionB = NULL; surf_action_t actionC = NULL; surf_action_t commAB = NULL; - e_surf_action_state_t stateActionA; - e_surf_action_state_t stateActionB; - e_surf_action_state_t stateActionC; double now = -1.0; surf_workstation_resource_init_CLM03(platform); @@ -85,7 +85,7 @@ void test(char *platform) surf_resource_t resource = NULL; now = surf_get_clock(); - DEBUG1("Next Event : " "%lg" "\n", now); + DEBUG1("Next Event : " "%g" "\n", now); xbt_dynar_foreach(resource_list, i, resource) { DEBUG1("\t %s actions\n", resource->common_public->name); @@ -106,16 +106,22 @@ void test(char *platform) 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 */ if(argc==1) { fprintf(stderr,"Usage : %s platform.txt\n",argv[0]); + surf_exit(); return 1; } test(argv[1]); + + surf_exit(); return 0; }