Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / msg / dht-kademlia / task.h
index a7cd143..a5aac15 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012, 2014-2016. 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
@@ -29,7 +29,9 @@ typedef struct s_task_data {
   answer_t answer;              //Answer to the request made, if needed.
   char *answer_to;              // mailbox to send the answer to (if not an answer).
   const char *issuer_host_name; // used for logging
-} s_task_data_t, *task_data_t;
+} s_task_data_t;
+
+typedef s_task_data_t *task_data_t;
 
 //Task handling functions
 msg_task_t task_new_find_node(unsigned int sender_id, unsigned int destination_id, char *mailbox, const char *hostname);