]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make days a const
authorMark Andrews <marka@isc.org>
Thu, 24 Apr 2014 03:15:40 +0000 (13:15 +1000)
committerMark Andrews <marka@isc.org>
Thu, 24 Apr 2014 03:16:36 +0000 (13:16 +1000)
(cherry picked from commit 974fb3a9c57b22c96235878b02a9e2d284e01462)

lib/dns/time.c

index d331ca3bfe1023f2c68f6823977900dd726b96a4..b3d2c2d084498eee106d235de5f04f9dc4fbe41c 100644 (file)
@@ -35,7 +35,7 @@
 #include <dns/result.h>
 #include <dns/time.h>
 
-static int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
+static const int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
 
 isc_result_t
 dns_time64_totext(isc_int64_t t, isc_buffer_t *target) {