X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b3677b425b9cc6949c1573d59ac772540cbf4b2..6270ece7967b322385bbff766ee5f882ba1ef2a2:/examples/msg/pastry/pastry.c diff --git a/examples/msg/pastry/pastry.c b/examples/msg/pastry/pastry.c index 45300c774b..1627a37fb1 100644 --- a/examples/msg/pastry/pastry.c +++ b/examples/msg/pastry/pastry.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ #include #include -#include "msg/msg.h" +#include "simgrid/msg.h" #include "xbt/log.h" #include "xbt/asserts.h" @@ -130,7 +130,7 @@ static int shl(int a, int b) { } /* - * Get the cloest id to the dest in the node namespace_set + * Get the closest id to the dest in the node namespace_set */ static int closest_in_namespace_set(node_t node, int dest) { int best_dist; @@ -213,7 +213,7 @@ static void handle_task(node_t node, msg_task_t task) { /* * Try to join the ring */ - case TASK_JOIN:; + case TASK_JOIN: { int next = routing_next(node, task_data->answer_id); XBT_DEBUG("Join request from %08x forwarding to %08x", task_data->answer_id, next); type = TASK_JOIN_LAST_REPLY; @@ -240,7 +240,7 @@ static void handle_task(node_t node, msg_task_t task) { task_sent = MSG_task_create(NULL, COMP_SIZE, COMM_SIZE, req_data); MSG_task_send_with_timeout(task_sent, task_data->answer_to, timeout); break; - + } /* * Join reply from all the node touched by the join */ @@ -423,7 +423,7 @@ static int join(node_t node){ } /* - * Print the node infomations + * Print the node infomation */ static void print_node(node_t node) { printf("Node:\n");