From 28c625572b412109ce4d8cc84bfb1234ef3270e9 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Wed, 25 Apr 2012 17:40:13 +0200 Subject: [PATCH] Move general macros in dnsmasq.h --- src/dnsmasq.h | 3 +++ src/dnssec.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dnsmasq.h b/src/dnsmasq.h index a59bb19..6c62a52 100644 --- a/src/dnsmasq.h +++ b/src/dnsmasq.h @@ -56,6 +56,9 @@ typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; +#define countof(x) (long)(sizeof(x) / sizeof(x[0])) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) + #include "dns-protocol.h" #include "dhcp-protocol.h" #ifdef HAVE_DHCP6 diff --git a/src/dnssec.c b/src/dnssec.c index 1c7bba8..1e95479 100644 --- a/src/dnssec.c +++ b/src/dnssec.c @@ -8,9 +8,6 @@ #define SERIAL_LT -1 #define SERIAL_GT 1 -#define countof(x) (long)(sizeof(x) / sizeof(x[0])) -#define MIN(a,b) ((a) < (b) ? (a) : (b)) - /* Updated registry that merges various RFCs: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xml */ static const VerifyAlg valgs[] =