-/* Copyright (c) 2010-2016. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/msg.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_app_masterworker, "Messages specific for this msg example");
+#include <stdio.h> /* snprintf */
+XBT_LOG_NEW_DEFAULT_CATEGORY(msg_app_masterworker, "Messages specific for this msg example");
/* Main function of the master process */
static int master(int argc, char *argv[])
snprintf(mailbox,79, "worker-%ld", id);
- while (1) { /* The worker wait in an infinite loop for tasks sent by the \ref master */
+ while (1) { /* The worker wait in an infinite loop for tasks sent by the @ref master */
msg_task_t task = NULL;
int res = MSG_task_receive(&task, mailbox);
xbt_assert(res == MSG_OK, "MSG_task_get failed");