make days a const

(cherry picked from commit 974fb3a9c5)
This commit is contained in:
Mark Andrews
2014-04-24 13:16:36 +10:00
parent 78501be4cb
commit 78e2afc0cb
+1 -1
View 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) {