Revision f217ce38 src/ChunkTrading/chunk_delivery.c

View differences:

src/ChunkTrading/chunk_delivery.c
14 14
#include "trade_msg_ha.h"
15 15
#include "grapes_msg_types.h"
16 16

  
17
static struct nodeID *localID;
18

  
19 17
int parseChunkMsg(const uint8_t *buff, int buff_len, struct chunk *c, uint16_t *transid)
20 18
{
21 19
  int res;
......
45 43
 */
46 44
//TO CHECK AND CORRECT
47 45
//XXX Send data is in char while our buffer is in uint8
48
int sendChunk(const struct nodeID *to, const struct chunk *c, uint16_t transid)
46
int sendChunk(const struct nodeID * localID, const struct nodeID *to, const struct chunk *c, uint16_t transid)
49 47
{
50 48
  int buff_len;
51 49
  uint8_t *buff;
......
72 70

  
73 71
int chunkDeliveryInit(struct nodeID *myID)
74 72
{
75
  localID = myID;
76

  
77 73
  return 1;
78 74
}
79 75

  

Also available in: Unified diff