Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typos and useless register
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 15 Apr 2016 19:37:48 +0000 (21:37 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 15 Apr 2016 19:45:05 +0000 (21:45 +0200)
examples/msg/app-pingpong/app-pingpong.c
examples/msg/app-token-ring/app-token-ring.c

index 59b3b74..8caacc6 100644 (file)
@@ -8,7 +8,7 @@
 
 /** @addtogroup MSG_examples
  *
 
 /** @addtogroup MSG_examples
  *
- *  - <b>Ping-Pong: app-pingpong/app-pingpong.c </b>. It's hard to think of a simpler example. The tesh file
+ *  - <b>Ping-Pong: app-pingpong/app-pingpong.c</b>. It's hard to think of a simpler example. The tesh file
  *    laying in the directory is instructive concerning the way to pass options to the simulators (see \ref options).
  */
 
  *    laying in the directory is instructive concerning the way to pass options to the simulators (see \ref options).
  */
 
index b73ad92..de7e757 100644 (file)
@@ -6,11 +6,11 @@
 
 #include "simgrid/msg.h"
 
 
 #include "simgrid/msg.h"
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(ring, "Messages specific for this msg example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(msg_app_token_ring, "Messages specific for this msg example");
 
 /** @addtogroup MSG_examples
  * 
 
 /** @addtogroup MSG_examples
  * 
- * - <b>Token Ring: app-token-ring/app-token-ring.c</b>: Classical token ring communication, where a token is exchanged
+ * - <b>Token Ring: app-token-ring/app-token-ring.c</b>. Classical token ring communication, where a token is exchanged
  *   along a ring to reach every participant. The tesh file laying in the directory shows how to run the same example on
  *   different platforms.
  */
  *   along a ring to reach every participant. The tesh file laying in the directory shows how to run the same example on
  *   different platforms.
  */
@@ -55,7 +55,6 @@ int main(int argc, char *argv[])
   MSG_create_environment(argv[1]);       /** - Load the platform description */
   xbt_dynar_t hosts = MSG_hosts_as_dynar();
   msg_host_t h;
   MSG_create_environment(argv[1]);       /** - Load the platform description */
   xbt_dynar_t hosts = MSG_hosts_as_dynar();
   msg_host_t h;
-  MSG_function_register("foo", foo);
 
   XBT_INFO("Number of host '%d'",MSG_get_host_number());
   xbt_dynar_foreach (hosts, i, h){      /** - Give a unique rank to each host and create a @ref foo process on each */
 
   XBT_INFO("Number of host '%d'",MSG_get_host_number());
   xbt_dynar_foreach (hosts, i, h){      /** - Give a unique rank to each host and create a @ref foo process on each */