Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare parameters as const, and make comment match the code.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 30 Oct 2017 08:34:47 +0000 (09:34 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 30 Oct 2017 14:44:29 +0000 (15:44 +0100)
teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.c

index b519739..dc86382 100644 (file)
@@ -11,8 +11,8 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(synchro_crashtest, "Logs of this example");
 
 
 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 */
 int *id;                        /* to pass a pointer to the threads without race condition */
 
 int more_info = 0;              /* SET IT TO TRUE TO GET MORE INFO */