From: Francis Dupont Date: Wed, 12 Jun 2013 17:14:30 +0000 (+0200) Subject: merge rt33813: MSVC doesn't propage const to dynamic array sizes X-Git-Tag: v9.10.0a1~287 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b4a865ee130c8a1623a7060c27efec0c1f238403;p=thirdparty%2Fbind9.git merge rt33813: MSVC doesn't propage const to dynamic array sizes --- diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 7bc31cd60a9..ab9ecc925d7 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 de78f75361e..6d2c0ed7fc6 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];