]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3143. [bug] Silence clang compiler warnings. [RT #25174]
authorMark Andrews <marka@isc.org>
Thu, 18 Aug 2011 06:00:07 +0000 (06:00 +0000)
committerMark Andrews <marka@isc.org>
Thu, 18 Aug 2011 06:00:07 +0000 (06:00 +0000)
lib/dns/dst_api.c

index 1405d7d32ca7e0b96b97ebacfd8c868e6bf33c81..a8de5579122609f4cd8782675173d97d0e35c024 100644 (file)
@@ -31,7 +31,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: dst_api.c,v 1.60 2011/08/18 04:52:35 marka Exp $
+ * $Id: dst_api.c,v 1.61 2011/08/18 06:00:07 marka Exp $
  */
 
 /*! \file */
@@ -1579,7 +1579,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
                fprintf(fp, "%d ", key->key_ttl);
 
        isc_buffer_usedregion(&classb, &r);
-       if (isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
+       if (isc_util_fwrite(r.base, 1, r.length, fp) != (int)r.length)
                ret = DST_R_WRITEERROR;
 
        if ((type & DST_TYPE_KEY) != 0)
@@ -1588,7 +1588,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
                fprintf(fp, " DNSKEY ");
 
        isc_buffer_usedregion(&textb, &r);
-       if (isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
+       if (isc_util_fwrite(r.base, 1, r.length, fp) != (int)r.length)
                ret = DST_R_WRITEERROR;
 
        fputc('\n', fp);