mirror of
https://github.com/hufrea/byedpi.git
synced 2025-01-04 13:24:18 +00:00
Simmetric len cmp
This commit is contained in:
parent
0b14bc6d8b
commit
2247c64676
2
mpool.c
2
mpool.c
@ -45,7 +45,7 @@ static int host_cmp(const struct elem *p, const struct elem *q)
|
|||||||
|| (p->len > q->len ? pd[-1] : qd[-1]) == '.')
|
|| (p->len > q->len ? pd[-1] : qd[-1]) == '.')
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return p->len > q->len ? 1 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int scmp(const struct elem *p, const struct elem *q)
|
static int scmp(const struct elem *p, const struct elem *q)
|
||||||
|
Loading…
Reference in New Issue
Block a user