diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 7bc31cd60a..ab9ecc925d 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -106,7 +106,7 @@ typedef struct file_header file_header_t; static char FILE_VERSION[32] = "\0"; /* Header length, always the same size regardless of structure size */ -const unsigned int HEADER_LENGTH = 1024; +#define HEADER_LENGTH 1024 struct file_header { char version1[32]; diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index de78f75361..6d2c0ed7fc 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -103,7 +103,7 @@ typedef struct rbtdb_file_header rbtdb_file_header_t; static char FILE_VERSION[32] = "\0"; /* Header length, always the same size regardless of structure size */ -static const unsigned int RBTDB_HEADER_LENGTH = 1024; +#define RBTDB_HEADER_LENGTH 1024 struct rbtdb_file_header { char version1[32];