A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kill features marked deprecated until v3.19.
[simgrid.git]
/
examples
/
msg
/
mc
/
bugged2_liveness.c
diff --git
a/examples/msg/mc/bugged2_liveness.c
b/examples/msg/mc/bugged2_liveness.c
index 67e91ac89de7a66a3549eecd99ad9e9741bd53a2..8d4f99b08046b5265c8ff4c841d8da5f58ee3608 100644
(file)
--- a/
examples/msg/mc/bugged2_liveness.c
+++ b/
examples/msg/mc/bugged2_liveness.c
@@
-53,7
+53,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
+61,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);