Commit 28c62557 authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

Move general macros in dnsmasq.h

parent 02f9b764
...@@ -56,6 +56,9 @@ typedef unsigned short u16; ...@@ -56,6 +56,9 @@ typedef unsigned short u16;
typedef unsigned int u32; typedef unsigned int u32;
typedef unsigned long long u64; 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 "dns-protocol.h"
#include "dhcp-protocol.h" #include "dhcp-protocol.h"
#ifdef HAVE_DHCP6 #ifdef HAVE_DHCP6
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
#define SERIAL_LT -1 #define SERIAL_LT -1
#define SERIAL_GT 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: /* Updated registry that merges various RFCs:
https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xml */ https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xml */
static const VerifyAlg valgs[] = static const VerifyAlg valgs[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment