Revision 67700aad include/peerset.h

View differences:

include/peerset.h
20 20
void peerset_destroy(struct peerset **h);
21 21

  
22 22
#define peerset_for_each(pset,p,i) \
23
		for(i=0,p= peerset_size(pset) > 0 ? ((const struct peer*)peerset_get_peers(pset)[0]) : NULL; i<peerset_size(pset);i++,p=((const struct peer*)peerset_get_peers(pset)[i]))
23
		for(i=0,p= peerset_size(pset) > 0 ? ((struct peer const *)peerset_get_peers(pset)[0]) : NULL; i<peerset_size(pset);i++,p=((struct peer const *)peerset_get_peers(pset)[i]))
24 24

  
25 25
 /**
26 26
  * @brief Allocate a  peer set.

Also available in: Unified diff