Remove isc_stdtime_get() macro
Now that isc_stdtime_get() macro is unused, remove it from the header file.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user