Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill useless include files.
[simgrid.git] / examples / msg / mc / bugged2_liveness.c
index 67e91ac..b363faf 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "simgrid/msg.h"
 #include "mc/mc.h"
-#include "bugged2_liveness.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(bugged3, "my log messages");
 
@@ -53,7 +52,6 @@ static int client(int argc, char *argv[])
 {
   int my_pid = MSG_process_get_PID(MSG_process_self());
   char *my_mailbox = xbt_strdup(argv[1]);
-  const char* kind;
 
   while(1){
     XBT_INFO("Client (%s) asks the request", my_mailbox);
@@ -62,7 +60,7 @@ static int client(int argc, char *argv[])
     msg_task_t answer = NULL;
     MSG_task_receive(&answer, my_mailbox);
 
-    kind = MSG_task_get_name(answer);
+    const char* kind = MSG_task_get_name(answer);
 
     if (!strcmp(kind, "grant")) {
       XBT_INFO("Client (%s) got the answer (grant). Sleep a bit and release it", my_mailbox);