mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Remove unthreaded support
This commit is contained in:
@@ -1562,11 +1562,7 @@ issymmetric(const dst_key_t *key) {
|
||||
static void
|
||||
printtime(const dst_key_t *key, int type, const char *tag, FILE *stream) {
|
||||
isc_result_t result;
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
char output[26]; /* Minimum buffer as per ctime_r() specification. */
|
||||
#else
|
||||
const char *output;
|
||||
#endif
|
||||
isc_stdtime_t when;
|
||||
time_t t;
|
||||
char utc[sizeof("YYYYMMDDHHSSMM")];
|
||||
@@ -1579,7 +1575,6 @@ printtime(const dst_key_t *key, int type, const char *tag, FILE *stream) {
|
||||
|
||||
/* time_t and isc_stdtime_t might be different sizes */
|
||||
t = when;
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
#ifdef WIN32
|
||||
if (ctime_s(output, sizeof(output), &t) != 0)
|
||||
goto error;
|
||||
@@ -1587,9 +1582,6 @@ printtime(const dst_key_t *key, int type, const char *tag, FILE *stream) {
|
||||
if (ctime_r(&t, output) == NULL)
|
||||
goto error;
|
||||
#endif
|
||||
#else
|
||||
output = ctime(&t);
|
||||
#endif
|
||||
|
||||
isc_buffer_init(&b, utc, sizeof(utc));
|
||||
result = dns_time32_totext(when, &b);
|
||||
|
Reference in New Issue
Block a user