From: Martin Quinson Date: Sat, 3 Sep 2016 21:28:17 +0000 (+0200) Subject: cosmetics X-Git-Tag: v3_14~419^2~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c375644f8cbaae385183c3667704d55f589268b5 cosmetics --- diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index f17014a34a..50f208a6ef 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -147,12 +147,11 @@ void _xbt_replay_action_exit() */ int xbt_replay_action_runner(int argc, char *argv[]) { - int i; if (xbt_action_fp) { // A unique trace file while (true) { char **evt = action_get_action(argv[0]); if (evt == nullptr) - break; + break; char* lowername = str_tolower (evt[1]); action_fun function = (action_fun)xbt_dict_get(xbt_action_funs, lowername); @@ -163,7 +162,7 @@ int xbt_replay_action_runner(int argc, char *argv[]) catch(xbt_ex& e) { xbt_die("Replay error :\n %s", e.what()); } - for (i=0;evt[i]!= nullptr;i++) + for (int i=0;evt[i]!= nullptr;i++) free(evt[i]); free(evt); }