X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9e68ca10e951fb61e944c99c7774b1e415ae9f6d..9cd192ac127fe76be50a32502c1fb13d5847fa71:/examples/msg/chainsend/peer.h diff --git a/examples/msg/chainsend/peer.h b/examples/msg/chainsend/peer.h index 8727e15f36..63f5a0ebe7 100644 --- a/examples/msg/chainsend/peer.h +++ b/examples/msg/chainsend/peer.h @@ -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. */ + #ifndef KADEPLOY_PEER_H #define KADEPLOY_PEER_H @@ -12,14 +18,14 @@ /* Peer struct */ typedef struct s_peer { int init; - const char *prev; - const char *next; + char *prev; + char *next; char *me; int pieces; unsigned long long bytes; xbt_dynar_t pending_recvs; xbt_dynar_t pending_sends; - int close_asap; /* TODO: unused */ + unsigned int total_pieces; } s_peer_t, *peer_t; /* Peer: helper functions */