make days a const

This commit is contained in:
Mark Andrews 2014-04-24 13:15:40 +10:00
parent 471f2b71d8
commit 974fb3a9c5

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