r.base = (unsigned char *)&rawheader;
r.length = sizeof(rawheader);
isc_buffer_region(&buffer, &r);
-#if !defined(STDTIME_ON_32BITS) || (STDTIME_ON_32BITS + 0) != 1
- /*
- * We assume isc_stdtime_t is a 32-bit integer,
- * which should be the case on most platforms.
- * If it turns out to be uncommon, we'll need
- * to bump the version number and revise the
- * header format.
- */
- isc_log_write(dns_lctx,
- ISC_LOGCATEGORY_GENERAL,
- DNS_LOGMODULE_MASTERDUMP,
- ISC_LOG_INFO,
- "dumping master file in raw "
- "format: stdtime is not 32bits");
- now32 = 0;
-#else
now32 = dctx->now;
-#endif
rawversion = 1;
if ((dctx->header.flags & DNS_MASTERRAW_COMPAT) != 0)
rawversion = 0;
if (result == ISC_R_NOMORE)
result = ISC_R_SUCCESS;
if (timewarn > 0) {
-#if defined(STDTIME_ON_32BITS)
isc_stdtime_t stdwarn = (isc_stdtime_t)timewarn;
- if (timewarn == stdwarn)
-#endif
+ if (timewarn == stdwarn) {
set_key_expiry_warning(zone, (isc_stdtime_t)timewarn,
now);
-#if defined(STDTIME_ON_32BITS)
- else
+ } else {
dns_zone_log(zone, ISC_LOG_ERROR,
"key expiry warning time out of range");
-#endif
+ }
}
failure:
if (node != NULL)
*/
typedef uint32_t isc_stdtime_t;
-/* but this flag helps... */
-#define STDTIME_ON_32BITS 1
-
-/*
- * isc_stdtime32_t is a 32-bit version of isc_stdtime_t. A variable of this
- * type should only be used as an opaque integer (e.g.,) to compare two
- * time values.
- */
-typedef uint32_t isc_stdtime32_t;
-
ISC_LANG_BEGINDECLS
/* */
void
*/
typedef uint32_t isc_stdtime_t;
-/* but this flag helps... */
-#define STDTIME_ON_32BITS 1
-
-/*
- * isc_stdtime32_t is a 32-bit version of isc_stdtime_t. A variable of this
- * type should only be used as an opaque integer (e.g.,) to compare two
- * time values.
- */
-typedef uint32_t isc_stdtime32_t;
-
ISC_LANG_BEGINDECLS
void