From b4a865ee130c8a1623a7060c27efec0c1f238403 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 12 Jun 2013 19:14:30 +0200 Subject: [PATCH] merge rt33813: MSVC doesn't propage const to dynamic array sizes --- lib/dns/rbt.c | 2 +- lib/dns/rbtdb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];