make days a const

(cherry picked from commit 974fb3a9c5)
This commit is contained in:
Mark Andrews 2014-04-24 13:15:40 +10:00
parent 05cc87b0ea
commit 27cf9fea54

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) {