Revision 43b793e3 src/PeerSampler/cloudcast.c

View differences:

src/PeerSampler/cloudcast.c
92 92
  return 0;
93 93
}
94 94

  
95
static void cache_add_cache(struct peer_cache *dst, const struct peer_cache *add)
96
{
97
  int i, meta_size;
98
  const uint8_t *meta;
99

  
100
  meta = get_metadata(add, &meta_size);
101
  for (i = 0; nodeid(add, i); i++) {
102
    cache_add(dst,  nodeid(add, i), meta + (meta_size * i), meta_size);
103
  }
104
}
105

  
106 95
static int cache_add_resize(struct peer_cache *dst, struct nodeID *n, const int cache_max_size)
107 96
{
108 97
  int err;

Also available in: Unified diff