From e240e3d106245db2981fc82ef82dbce6a34839a7 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 14 Jun 2021 11:45:36 +0200 Subject: [PATCH] Restore symbol ldns_serial_arithmitics_gmtime_r with wrong spelling as alias of ldns_serial_arithmetics_gmtime_r --- ldns/util.h.in | 3 +++ util.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ldns/util.h.in b/ldns/util.h.in index 39bcbdbd..7115a2b7 100644 --- a/ldns/util.h.in +++ b/ldns/util.h.in @@ -287,6 +287,9 @@ time_t mktime_from_utc(const struct tm *tm); * \return result on success or NULL on error */ struct tm * ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result); + +/* previously used wrong spelling */ +#define ldns_serial_arithmitics_gmtime_r ldns_serial_arithmetics_gmtime_r /** * Seed the random function. diff --git a/util.c b/util.c index b622f3fe..11f876d6 100644 --- a/util.c +++ b/util.c @@ -312,6 +312,13 @@ ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result) #endif } +/* alias function because of previously used wrong spelling */ +struct tm * +ldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result) +{ + return ldns_serial_arithmetics_gmtime_r(time, now, result); +} + /** * Init the random source * applications should call this if they need entropy data within ldns -- 2.47.3