Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the DTD file from gforge to our own homepage
[simgrid.git] / examples / msg / app-masterworker / app-masterworker.c
index ff45776..711bed8 100644 (file)
@@ -1,10 +1,12 @@
-/* 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"
 
+#include <stdio.h> /* snprintf */
+
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_app_masterworker, "Messages specific for this msg example");
 
 /* Main function of the master process */
@@ -53,7 +55,7 @@ static int worker(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");