X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/68e7d8ef24317ee8ee164b2bf8e84f97e288cae2..70790490ad6ddbc26225ce84f5c3d17b5efacc20:/teshsuite/msg/app-bittorrent/connection.h diff --git a/teshsuite/msg/app-bittorrent/connection.h b/teshsuite/msg/app-bittorrent/connection.h index ccfc52a818..5a4459b856 100644 --- a/teshsuite/msg/app-bittorrent/connection.h +++ b/teshsuite/msg/app-bittorrent/connection.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014, 2016. The SimGrid Team. +/* Copyright (c) 2012-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,7 +9,7 @@ /** Contains the connection data of a peer. */ typedef struct s_connection { - char* id; // Peer id + int id; // Peer id unsigned int bitfield; // Fields char* mailbox; int messages_count; @@ -27,7 +27,7 @@ typedef s_connection_t* connection_t; /** @brief Build a new connection object from the peer id. * @param id id of the peer */ -connection_t connection_new(const char* id); +connection_t connection_new(int id); /** @brief Add a new value to the peer speed average * @param connection connection data * @param speed speed to add to the speed average