Revision 43dd1a10

View differences:

streaming.c
167 167
  dprintf("Received chunk %d with hopcount %hu\n", c->id, ca->hopcount);
168 168
}
169 169

  
170
void chunk_attributes_update_sending(struct chunk* c)
170
void chunk_attributes_update_sending(const struct chunk* c)
171 171
{
172 172
  struct chunk_attributes * ca;
173 173

  
......
441 441
}
442 442

  
443 443
double getChunkTimestamp(int *cid){
444
  struct chunk *c = cb_get_chunk(cb, *cid);
444
  const struct chunk *c = cb_get_chunk(cb, *cid);
445 445
  if (!c) return 0;
446 446

  
447 447
  return (double) c->timestamp;
......
454 454
  cset_acc_size = chunkID_set_size(cset_acc);
455 455
  reg_offer_accept(cset_acc_size > 0 ? 1 : 0);	//this only works if accepts are sent back even if 0 is accepted
456 456
  for (i = 0, d=0; i < cset_acc_size && d < max_deliver; i++) {
457
    struct chunk *c;
457
    const struct chunk *c;
458 458
    int chunkid = chunkID_set_get_chunk(cset_acc, i);
459 459
    c = cb_get_chunk(cb, chunkid);
460 460
    if (c && (!to || needs(to, chunkid)) ) {// we should have the chunk, and he should not have it. Although the "accept" should have been an answer to our "offer", we do some verification

Also available in: Unified diff