Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / examples / c / dht-kademlia / message.h
index a55d5ef80633542a94ac6e175632b2de2811f09f..d3ac7d21245db8e4cf9702ff0928797ed4451bc2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2020. The SimGrid Team.
+/* Copyright (c) 2012-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -20,11 +20,9 @@ typedef struct s_kademlia_message {
 } s_kademlia_message_t;
 
 typedef s_kademlia_message_t* kademlia_message_t;
-const typedef s_kademlia_message_t* const_kademlia_message_t;
+typedef const s_kademlia_message_t* const_kademlia_message_t;
 
 // Task handling functions
-kademlia_message_t task_new_find_node(unsigned int sender_id, unsigned int destination_id, sg_mailbox_t mailbox,
-                                      const char* hostname);
 kademlia_message_t new_message(unsigned int sender_id, unsigned int destination_id, answer_t answer,
                                sg_mailbox_t mailbox, const char* hostname);
 void free_message(void* message);