From: Willem Toorop Date: Mon, 14 Jun 2021 09:45:36 +0000 (+0200) Subject: Restore symbol ldns_serial_arithmitics_gmtime_r X-Git-Tag: 1.8.0-rc.1~25^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e240e3d106245db2981fc82ef82dbce6a34839a7;p=thirdparty%2Fldns.git Restore symbol ldns_serial_arithmitics_gmtime_r with wrong spelling as alias of ldns_serial_arithmetics_gmtime_r --- 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