mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Silence a compiler warning by using #if comparison instead of if. No
CHANGES note because it's trivial. [RT #23587]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: masterdump.c,v 1.101 2011/03/05 23:52:30 tbox Exp $ */
|
||||
/* $Id: masterdump.c,v 1.102 2011/03/11 01:20:39 each Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1385,7 +1385,7 @@ dumptostreaminc(dns_dumpctx_t *dctx) {
|
||||
isc_buffer_region(&buffer, &r);
|
||||
isc_buffer_putuint32(&buffer, dns_masterformat_raw);
|
||||
isc_buffer_putuint32(&buffer, DNS_RAWFORMAT_VERSION);
|
||||
if (sizeof(now32) != sizeof(dctx->now)) {
|
||||
#if (sizeof(isc_uint32_t) != sizeof(isc_stdtime_t))
|
||||
/*
|
||||
* We assume isc_stdtime_t is a 32-bit integer,
|
||||
* which should be the case on most cases.
|
||||
@@ -1400,8 +1400,9 @@ dumptostreaminc(dns_dumpctx_t *dctx) {
|
||||
"dumping master file in raw "
|
||||
"format: stdtime is not 32bits");
|
||||
now32 = 0;
|
||||
} else
|
||||
#else
|
||||
now32 = dctx->now;
|
||||
#endif
|
||||
isc_buffer_putuint32(&buffer, now32);
|
||||
INSIST(isc_buffer_usedlength(&buffer) <=
|
||||
sizeof(rawheader));
|
||||
|
Reference in New Issue
Block a user