From 8f674b13e8e7cd6309751e4971e1b00d04a418b8 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 21 Sep 2001 00:11:30 +0000 Subject: [PATCH] dns_time*_fromtext should take "const char *"s, not "char *"s. --- lib/dns/include/dns/time.h | 6 +++--- lib/dns/time.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/dns/include/dns/time.h b/lib/dns/include/dns/time.h index e21e573d72..847dfead0b 100644 --- a/lib/dns/include/dns/time.h +++ b/lib/dns/include/dns/time.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: time.h,v 1.9 2001/01/09 21:53:32 bwelling Exp $ */ +/* $Id: time.h,v 1.10 2001/09/21 00:11:30 bwelling Exp $ */ #ifndef DNS_TIME_H #define DNS_TIME_H 1 @@ -34,7 +34,7 @@ ISC_LANG_BEGINDECLS ***/ isc_result_t -dns_time64_fromtext(char *source, isc_int64_t *target); +dns_time64_fromtext(const char *source, isc_int64_t *target); /* * Convert a date and time in YYYYMMDDHHMMSS text format at 'source' * into to a 64-bit count of seconds since Jan 1 1970 0:00 GMT. @@ -42,7 +42,7 @@ dns_time64_fromtext(char *source, isc_int64_t *target); */ isc_result_t -dns_time32_fromtext(char *source, isc_uint32_t *target); +dns_time32_fromtext(const char *source, isc_uint32_t *target); /* * Like dns_time64_fromtext, but returns the second count modulo 2^32 * as per RFC2535. diff --git a/lib/dns/time.c b/lib/dns/time.c index 95db294c65..5270598949 100644 --- a/lib/dns/time.c +++ b/lib/dns/time.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: time.c,v 1.18 2001/05/15 22:05:35 gson Exp $ */ +/* $Id: time.c,v 1.19 2001/09/21 00:11:29 bwelling Exp $ */ #include @@ -115,7 +115,7 @@ dns_time32_totext(isc_uint32_t value, isc_buffer_t *target) { } isc_result_t -dns_time64_fromtext(char *source, isc_int64_t *target) { +dns_time64_fromtext(const char *source, isc_int64_t *target) { int year, month, day, hour, minute, second; isc_int64_t value; int secs; @@ -159,7 +159,7 @@ dns_time64_fromtext(char *source, isc_int64_t *target) { } isc_result_t -dns_time32_fromtext(char *source, isc_uint32_t *target) { +dns_time32_fromtext(const char *source, isc_uint32_t *target) { isc_int64_t value64; isc_int32_t value32; isc_result_t result;