-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2020. 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. */
void joinChain()
{
- const ChainMessage* msg = static_cast<ChainMessage*>(me->get());
+ const auto* msg = static_cast<ChainMessage*>(me->get());
prev = msg->prev_;
next = msg->next_;
total_pieces = msg->num_pieces;
{
XBT_DEBUG("peer");
- Peer* p = new Peer();
+ auto* p = new Peer();
double start_time = simgrid::s4u::Engine::get_clock();
p->joinChain();
{
XBT_DEBUG("broadcaster");
- Broadcaster* bc = new Broadcaster(hostcount, piece_count);
+ auto* bc = new Broadcaster(hostcount, piece_count);
bc->buildChain();
bc->sendFile();