X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c87c9d8cb9788a2060058caf618390993166dbf1..5970a2578992ed4bc926a2e46efa532015ec4a4d:/examples/gras/timer/timer.c diff --git a/examples/gras/timer/timer.c b/examples/gras/timer/timer.c index 45cd18be7b..4f6b7e699b 100644 --- a/examples/gras/timer/timer.c +++ b/examples/gras/timer/timer.c @@ -51,11 +51,9 @@ static void delayed_action(void) { } /* end_of_delayed_action */ int client(int argc,char *argv[]) { - xbt_error_t errcode; - int cpt; my_globals *globals; - gras_init(&argc,argv,NULL); + gras_init(&argc,argv); globals=gras_userdata_new(my_globals); globals->still_to_do = -1; @@ -66,7 +64,7 @@ int client(int argc,char *argv[]) { gras_timer_delay(REPEAT_INTERVAL,delayed_action); INFO1("[%.0f] Have a rest", gras_os_time()); - gras_os_sleep(DELAY_INTERVAL / 2.0, 0); + gras_os_sleep(DELAY_INTERVAL / 2.0); INFO1("[%.0f] Canceling the delayed_action.",gras_os_time()); gras_timer_cancel_delay(REPEAT_INTERVAL,delayed_action);