Revision 0c6efcd5 src/Tests/peer.c

View differences:

src/Tests/peer.c
23 23
	res = (struct peer *)malloc(*size);
24 24
	res->id = nodeid_dup(id);
25 25
	gettimeofday(&(res->creation_timestamp),NULL);
26
	gettimeofday(&(res->bmap_timestamp),NULL);
27
	res->bmap = chunkID_set_init(0);
28 26
	return res;
29 27
}
30 28

  
31 29
void peerDelete (struct peer *p) {
32 30
	nodeid_free(p->id);
33
	chunkID_set_free(p->bmap);
34 31
	free(p);
35 32
}
36 33

  
......
56 53
	*size = *size + sizeof(int);
57 54

  
58 55
	gettimeofday(&(p->creation_timestamp),NULL);
59
	gettimeofday(&(p->bmap_timestamp),NULL);
60
	p->bmap = chunkID_set_init(0);
61 56

  
62 57
	return p;
63 58

  

Also available in: Unified diff