Revision d1de8494 include/peerset.h

View differences:

include/peerset.h
35 35
  * @return > 0 if the peer is correctly inserted in the set, 0 if a peer with
36 36
  *         the same nodeID is already in the set, < 0 on error
37 37
  */
38
int peerset_add_peer(struct peerset *h, const struct nodeID *id);
38
int peerset_add_peer(struct peerset *h, struct nodeID *id);
39 39

  
40 40
 /**
41 41
  * Add peers to the set.
......
47 47
  * @parameter ids the IDs of the peers to be inserted in the set
48 48
  * @parameter n length of the its array
49 49
  */
50
void peerset_add_peers(struct peerset *h, const struct nodeID **ids, int n);
50
void peerset_add_peers(struct peerset *h, struct nodeID **ids, int n);
51 51

  
52 52
 /**
53 53
  * Remove a peer from the set.

Also available in: Unified diff