Revision d1de8494 som/PeerSet/peerset_ops.c

View differences:

som/PeerSet/peerset_ops.c
39 39
  return p;
40 40
}
41 41

  
42
int peerset_add_peer(struct peerset *h, const struct nodeID *id)
42
int peerset_add_peer(struct peerset *h, struct nodeID *id)
43 43
{
44 44
  struct peer *e;
45 45
  if (peerset_check(h, id) >= 0) {
......
66 66
  return h->n_elements;
67 67
}
68 68

  
69
void peerset_add_peers(struct peerset *h, const struct nodeID **ids, int n)
69
void peerset_add_peers(struct peerset *h, struct nodeID **ids, int n)
70 70
{
71 71
  int i;
72 72

  
73 73
  for (i = 0; i < n; i++) {
74
    peerset_add_peer(h,ids[i]);
74
    peerset_add_peer(h, ids[i]);
75 75
  }
76 76
}
77 77

  

Also available in: Unified diff