2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Prevent Linux spurious warnings about fwrite(). [RT #20812]

This commit is contained in:
Francis Dupont
2010-01-11 10:49:14 +00:00
parent 36399b2e4a
commit a91029a00e
6 changed files with 26 additions and 13 deletions

View File

@@ -31,7 +31,7 @@
/*%
* Principal Author: Brian Wellington
* $Id: dst_parse.c,v 1.25 2010/01/08 23:51:44 tbox Exp $
* $Id: dst_parse.c,v 1.26 2010/01/11 10:49:14 fdupont Exp $
*/
#include <config.h>
@@ -626,7 +626,7 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
isc_buffer_usedregion(&b, &r);
fprintf(fp, "%s ", s);
fwrite(r.base, 1, r.length, fp);
isc_util_fwrite(r.base, 1, r.length, fp);
fprintf(fp, "\n");
}
@@ -651,7 +651,7 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
isc_buffer_usedregion(&b, &r);
fprintf(fp, "%s ", timetags[i]);
fwrite(r.base, 1, r.length, fp);
isc_util_fwrite(r.base, 1, r.length, fp);
fprintf(fp, "\n");
}
}