Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const for sonar.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 18 Dec 2020 08:06:20 +0000 (09:06 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 18 Dec 2020 08:06:20 +0000 (09:06 +0100)
examples/s4u/mc-bugged2/s4u-mc-bugged2.cpp

index 77b495c..36196bb 100644 (file)
@@ -15,8 +15,8 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(example, "this example");
 
 static void server()
 {
-  int* received1 = nullptr;
-  int* received2 = nullptr;
+  const int* received1 = nullptr;
+  const int* received2 = nullptr;
 
   received1 = simgrid::s4u::Mailbox::by_name("mymailbox")->get<int>();
   long val1 = *received1;