]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Restore symbol ldns_serial_arithmitics_gmtime_r
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 14 Jun 2021 09:45:36 +0000 (11:45 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 14 Jun 2021 09:45:36 +0000 (11:45 +0200)
with wrong spelling as alias of ldns_serial_arithmetics_gmtime_r

ldns/util.h.in
util.c

index 39bcbdbda186eeca00d13488a0126991c741273a..7115a2b7f3bfeecec98d23f17dd7f506149041af 100644 (file)
@@ -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 b622f3fe856b1e2b17ca40e6c154310189d42aad..11f876d6334006dc18a8d84b9533f82e2994ba15 100644 (file)
--- 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