Remove isc_stdtime_get() macro

Now that isc_stdtime_get() macro is unused, remove it from the header
file.
This commit is contained in:
Ondřej Surý
2023-03-30 21:15:06 +02:00
parent 46f06c1d6e
commit 4bd6096d4b
4 changed files with 3 additions and 14 deletions

View 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

View 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.
*/

View File

@@ -29,20 +29,13 @@
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);
/*

View 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.
*/