From c6342fe2e90510d8d2296423f2ca92818a7b3d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 3 Feb 2017 13:01:00 +0000 Subject: import ldns 1.7.0 --- duration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'duration.c') diff --git a/duration.c b/duration.c index 6d0a388c5e613..1abeb12515d80 100644 --- a/duration.c +++ b/duration.c @@ -75,7 +75,7 @@ ldns_duration_create(void) * */ int -ldns_duration_compare(ldns_duration_type* d1, ldns_duration_type* d2) +ldns_duration_compare(const ldns_duration_type* d1, const ldns_duration_type* d2) { if (!d1 && !d2) { return 0; @@ -213,7 +213,7 @@ digits_in_number(time_t duration) * */ char* -ldns_duration2string(ldns_duration_type* duration) +ldns_duration2string(const ldns_duration_type* duration) { char* str = NULL, *num = NULL; size_t count = 2; @@ -316,7 +316,7 @@ ldns_duration2string(ldns_duration_type* duration) * */ time_t -ldns_duration2time(ldns_duration_type* duration) +ldns_duration2time(const ldns_duration_type* duration) { time_t period = 0; -- cgit v1.2.3