Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused variables.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 28 Nov 2012 17:18:19 +0000 (18:18 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 28 Nov 2012 17:22:30 +0000 (18:22 +0100)
examples/msg/chainsend/broadcaster.c
examples/msg/chainsend/peer.c

index 7c71ef7..c0fe0d8 100644 (file)
@@ -7,7 +7,6 @@ xbt_dynar_t build_hostlist_from_hostcount(int hostcount)
 {
   xbt_dynar_t host_list = xbt_dynar_new(sizeof(char*), NULL);
   char *hostname = NULL;
-  msg_host_t h = NULL;
   int i = 1;
   
   for (; i < hostcount+1; i++) {
@@ -69,7 +68,6 @@ int broadcaster_send_file(const char *first)
 {
   const char *me = MSG_host_get_name(MSG_host_self());
   msg_task_t task = NULL;
-  msg_comm_t comm = NULL;
   int status;
 
   int piece_count = PIECE_COUNT;
index 2348de5..7711068 100644 (file)
@@ -16,7 +16,6 @@ void peer_init_chain(peer_t peer, message_t msg)
 
 void peer_forward_msg(peer_t peer, message_t msg)
 {
-  int status;
   msg_task_t task = task_message_data_new(peer->me, peer->next, NULL, 0);
   msg_comm_t comm = NULL;
   XBT_DEBUG("Sending (isend) from %s into mailbox %s", peer->me, peer->next);