Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Memory leak--
[simgrid.git] / examples / s4u / dht-kademlia / answer.cpp
index 0d270de..0afc935 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2018. The SimGrid Team.
+/* Copyright (c) 2012-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -69,7 +69,7 @@ bool Answer::destinationFound()
 /** @brief Adds the content of a bucket unsigned into a answer object.
   * @param bucket the bucket we have to had unsigned into
   */
-void Answer::addBucket(Bucket* bucket)
+void Answer::addBucket(const Bucket* bucket)
 {
   xbt_assert((bucket != nullptr), "Provided a NULL bucket");