Revision c7ebbd34

View differences:

topology.c
253 253
  return 0;
254 254
}
255 255

  
256
static bool nidset_find(size_t *i, const struct nodeID **ids, size_t ids_size, const struct nodeID *id) {
257
  for (*i = 0; *i < ids_size; (*i)++) {
258
    if (ids[*i] == id) {
259
      return true;
260
    }
261
  }
262
  return false;
263
}
264

  
256 265
static int nidset_add(const struct nodeID **dst, size_t *dst_size, const struct nodeID **as, size_t as_size, const struct nodeID **bs, size_t bs_size) {
257 266
  size_t i;
258 267
  size_t max_size = *dst_size;

Also available in: Unified diff