Revision 3c2cbe48

View differences:

nodeid_set.c
14 14
#define MIN(A,B) (((A) < (B)) ? (A) : (B))
15 15

  
16 16
// The usual shuffle
17
void shuffle(void *base, int nmemb, int size) {
17
static void shuffle(void *base, int nmemb, int size) {
18 18
  int i;
19 19
  unsigned char t[size];
20 20
  unsigned char* b = base;
nodeid_set.h
12 12

  
13 13
struct nodeID;
14 14

  
15
// The usual shuffle
16
void shuffle(void *base, int nmemb, int size);
17

  
18 15
void nidset_shuffle(const struct nodeID **base, int nmemb);
19 16

  
20 17
int nidset_filter(const struct nodeID **dst, int *dst_size, const struct nodeID **src, int src_size, bool(*f)(const struct nodeID *));

Also available in: Unified diff