]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silence a compiler warning by using #if comparison instead of if. No
authorEvan Hunt <each@isc.org>
Fri, 11 Mar 2011 01:21:13 +0000 (01:21 +0000)
committerEvan Hunt <each@isc.org>
Fri, 11 Mar 2011 01:21:13 +0000 (01:21 +0000)
CHANGES note because it's trivial. [RT #23587]

lib/dns/masterdump.c

index 42d382976c3b946f50c61375246394de2416274f..ce8e107c1da05032d7a790ffb79219b06e8a9cf5 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: masterdump.c,v 1.99 2009/11/17 23:55:18 marka Exp $ */
+/* $Id: masterdump.c,v 1.99.258.1 2011/03/11 01:21:13 each Exp $ */
 
 /*! \file */
 
@@ -1381,7 +1381,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.
@@ -1396,8 +1396,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));