From: Arnaud Giersch Date: Mon, 30 Oct 2017 08:34:47 +0000 (+0100) Subject: Declare parameters as const, and make comment match the code. X-Git-Tag: v3.18~346 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/302151ec61c575695ef1b8da3ef5bcd433d37677 Declare parameters as const, and make comment match the code. --- diff --git a/teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.c b/teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.c index b51973990a..dc863824b7 100644 --- a/teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.c +++ b/teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.c @@ -11,8 +11,8 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(synchro_crashtest, "Logs of this example"); -int test_amount = 99; /* Up to 999 to not break the logs (and thus the testing mechanism) */ -int crasher_amount = 99; /* Up to 99 to not break the logs (and thus the testing mechanism) */ +const int test_amount = 99; /* Up to 99 to not break the logs (and thus the testing mechanism) */ +const int crasher_amount = 99; /* Up to 99 to not break the logs (and thus the testing mechanism) */ int *id; /* to pass a pointer to the threads without race condition */ int more_info = 0; /* SET IT TO TRUE TO GET MORE INFO */