X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d4390e366698c2b182e0fb535cfa2c30ccc8bb3c..bd08f5fb99eea01833b2b83730a0732443da8d38:/examples/msg/chainsend/broadcaster.c diff --git a/examples/msg/chainsend/broadcaster.c b/examples/msg/chainsend/broadcaster.c index 2eaea913d4..5daf3d5fa7 100644 --- a/examples/msg/chainsend/broadcaster.c +++ b/examples/msg/chainsend/broadcaster.c @@ -1,3 +1,9 @@ +/* Copyright (c) 2012-2014. 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 "broadcaster.h" XBT_LOG_NEW_DEFAULT_CATEGORY(msg_broadcaster, @@ -46,7 +52,7 @@ int broadcaster_build_chain(broadcaster_t bc) XBT_DEBUG("Building chain -- broadcaster:\"%s\" dest:\"%s\" prev:\"%s\" next:\"%s\"", me, current_host, prev, next); /* Send message to current peer */ - task = task_message_chain_new(me, current_host, prev, next, bc->piece_count); + task = task_message_chain_new(prev, next, bc->piece_count); MSG_task_send(task, current_host); last = current_host; @@ -65,7 +71,7 @@ int broadcaster_send_file(broadcaster_t bc) bc->current_piece = 0; while (bc->current_piece < bc->piece_count) { - task = task_message_data_new(me, bc->first, NULL, PIECE_SIZE); + task = task_message_data_new(NULL, PIECE_SIZE); XBT_DEBUG("Sending (send) piece %d from %s into mailbox %s", bc->current_piece, me, bc->first); MSG_task_send(task, bc->first); bc->current_piece++;