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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user