Revision 31c9346c

View differences:

src/ChunkIDSet/chunkids_ops.c
67 67

  
68 68
static int int_cmp(const void *pa, const void *pb)
69 69
{
70
  const int a = *( (const int *) pa);
71
  const int b = *( (const int *) pb);
72
  return a < b ? -1 : (a > b ? 1 : 0 );
70
  return (*(const int *)pa - *(const int *)pb);
73 71
}
74 72

  
75 73
static int check_insert_pos(const struct chunkID_set *h, int id)

Also available in: Unified diff