]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove isc_stdtime_get() macro
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Mar 2023 19:15:06 +0000 (21:15 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 31 Mar 2023 11:33:16 +0000 (13:33 +0200)
Now that isc_stdtime_get() macro is unused, remove it from the header
file.

lib/dns/include/dns/adb.h
lib/dns/time.c
lib/isc/include/isc/stdtime.h
tests/dns/update_test.c

index 0b96ee081f03ab43242d50a3fe48f1b2305e8e7a..b5b88abb8fec80a5040a45efd7bf1c41fc63187b 100644 (file)
@@ -369,10 +369,6 @@ dns_adb_createfind(dns_adb_t *adb, isc_loop_t *loop, isc_job_cb cb, void *cbarg,
  *\li  #ISC_R_NOMEMORY insufficient resources
  *\li  #DNS_R_ALIAS    'name' is an alias for another name.
  *
- * Calls, and returns error codes from:
- *
- *\li  isc_stdtime_get()
- *
  * Notes:
  *
  *\li  No internal reference to "name" exists after this function
index cffcb05eb6c862d834a114078aae78cd6681f9f8..dcec7c796441a312949ee1b926e9da520c91b6bc 100644 (file)
@@ -107,7 +107,7 @@ dns_time64_from32(uint32_t value) {
 
        /*
         * Adjust the time to the closest epoch.  This should be changed
-        * to use a 64-bit counterpart to isc_stdtime_get() if one ever
+        * to use a 64-bit counterpart to isc_stdtime_now() if one ever
         * is defined, but even the current code is good until the year
         * 2106.
         */
index 0b13dd351e469868fb829c429f610e7c07259e59..59cd058b5c7e7bbb8729fc52e3ca4bb33803fd81 100644 (file)
 typedef uint32_t isc_stdtime_t;
 
 ISC_LANG_BEGINDECLS
-/* */
+
 isc_stdtime_t
 isc_stdtime_now(void);
 /*%<
  * Return the number of seconds since 00:00:00 UTC, January 1, 1970.
  */
 
-/* Compatibility macro */
-#define isc_stdtime_get(tp)              \
-       {                                \
-               REQUIRE(tp != NULL);     \
-               *tp = isc_stdtime_now(); \
-       }
-
 void
 isc_stdtime_tostring(isc_stdtime_t t, char *out, size_t outlen);
 /*
index 5ec4002db5de293820197c310efc57effe7f2b95..7832cbcf7e457e1c877f9c8c84e280aa1c24adbb 100644 (file)
@@ -32,7 +32,7 @@
 #define KEEP_BEFORE
 
 /*
- * Fix the linking order problem for overridden isc_stdtime_get() by making
+ * Fix the linking order problem for overridden isc_stdtime_now() by making
  * everything local.  This also allows static functions from update.c to be
  * tested.
  */