mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 08:47:00 +00:00
clean up: remove unused functions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
f1411858cb
commit
2008e1a047
2 changed files with 0 additions and 17 deletions
14
src/sort.c
14
src/sort.c
|
|
@ -47,20 +47,6 @@
|
|||
|
||||
#include "dhcpd-pools.h"
|
||||
|
||||
/*! \brief Compare unsigned 32 bit integers. Suitable for IPv4 sorting.
|
||||
* \param x Binary IPv4 address.
|
||||
* \param y Binary IPv4 address.
|
||||
* \return If x < y return -1, if y < x return 1, when they are equal return 0.
|
||||
*/
|
||||
int intcomp(const void *restrict x, const void *restrict y)
|
||||
{
|
||||
if (*(uint32_t *) x < *(uint32_t *) y)
|
||||
return -1;
|
||||
if (*(uint32_t *) y < *(uint32_t *) x)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*! \brief Compare IP address, with IPv4/v6 determination.
|
||||
* \param a Binary IP address.
|
||||
* \param b Binary IP address.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue