mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Use the semantic patch to do the unsigned -> unsigned int change
Apply the semantic patch on the whole code base to get rid of 'unsigned' usage in favor of explicit 'unsigned int'.
This commit is contained in:
@@ -2205,7 +2205,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
|
||||
}
|
||||
|
||||
isc_buffer_usedregion(&classb, &r);
|
||||
if ((unsigned)fwrite(r.base, 1, r.length, fp) != r.length) {
|
||||
if ((unsigned int)fwrite(r.base, 1, r.length, fp) != r.length) {
|
||||
ret = DST_R_WRITEERROR;
|
||||
}
|
||||
|
||||
@@ -2216,7 +2216,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
|
||||
}
|
||||
|
||||
isc_buffer_usedregion(&textb, &r);
|
||||
if ((unsigned)fwrite(r.base, 1, r.length, fp) != r.length) {
|
||||
if ((unsigned int)fwrite(r.base, 1, r.length, fp) != r.length) {
|
||||
ret = DST_R_WRITEERROR;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user