From 23aae87356626f1b6b03c387d6cfb7a411e2dcb7 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Fri, 8 Mar 2013 23:38:25 +0000 Subject: [PATCH] include: add missing declarations to dhcpd-pool.h This will fix eight warnings similar to the example below. sort.c:104:5: warning: no previous declaration for 'comp_ip' [-Wmissing-declarations] Signed-off-by: Sami Kerola --- src/dhcpd-pools.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dhcpd-pools.h b/src/dhcpd-pools.h index 5568711..123b8db 100644 --- a/src/dhcpd-pools.h +++ b/src/dhcpd-pools.h @@ -219,6 +219,14 @@ void usage(int status) __attribute__ ((noreturn)); /* qsort required functions... */ /* ...for ranges and... */ int ipcomp(const union ipaddr_t *restrict a, const union ipaddr_t *restrict b); +int comp_cur(struct range_t *r1, struct range_t *r2); +int comp_double(double f1, double f2); +int comp_ip(struct range_t *r1, struct range_t *r2); +int comp_max(struct range_t *r1, struct range_t *r2); +int comp_percent(struct range_t *r1, struct range_t *r2); +int comp_tc(struct range_t *r1, struct range_t *r2); +int comp_tcperc(struct range_t *r1, struct range_t *r2); +int comp_touched(struct range_t *r1, struct range_t *r2); int leasecomp(const void *restrict a, const void *restrict b); int rangecomp(const void *__restrict r1, const void *__restrict r2) __attribute__ ((nonnull(1, 2)));