2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Replace custom isc_u?intNN_t types with C99 u?intNN_t types

This commit is contained in:
Ondřej Surý
2018-03-28 14:19:37 +02:00
parent 055278c936
commit cb6a185c69
390 changed files with 2812 additions and 2528 deletions

View File

@@ -13,6 +13,7 @@
#include <config.h>
#include <stddef.h>
#include <inttypes.h>
#include <stdlib.h>
#include <isc/region.h>
@@ -24,9 +25,9 @@
#include "dst_internal.h"
isc_uint16_t
uint16_t
dst_region_computeid(const isc_region_t *source, unsigned int alg) {
isc_uint32_t ac;
uint32_t ac;
const unsigned char *p;
int size;
@@ -46,12 +47,12 @@ dst_region_computeid(const isc_region_t *source, unsigned int alg) {
ac += ((*p) << 8);
ac += (ac >> 16) & 0xffff;
return ((isc_uint16_t)(ac & 0xffff));
return ((uint16_t)(ac & 0xffff));
}
isc_uint16_t
uint16_t
dst_region_computerid(const isc_region_t *source, unsigned int alg) {
isc_uint32_t ac;
uint32_t ac;
const unsigned char *p;
int size;
@@ -73,7 +74,7 @@ dst_region_computerid(const isc_region_t *source, unsigned int alg) {
ac += ((*p) << 8);
ac += (ac >> 16) & 0xffff;
return ((isc_uint16_t)(ac & 0xffff));
return ((uint16_t)(ac & 0xffff));
}
dns_name_t *
@@ -100,7 +101,7 @@ dst_key_alg(const dst_key_t *key) {
return (key->key_alg);
}
isc_uint32_t
uint32_t
dst_key_flags(const dst_key_t *key) {
REQUIRE(VALID_KEY(key));
return (key->key_flags);
@@ -153,7 +154,7 @@ dst_key_isnullkey(const dst_key_t *key) {
}
void
dst_key_setbits(dst_key_t *key, isc_uint16_t bits) {
dst_key_setbits(dst_key_t *key, uint16_t bits) {
unsigned int maxbits;
REQUIRE(VALID_KEY(key));
if (bits != 0) {
@@ -164,7 +165,7 @@ dst_key_setbits(dst_key_t *key, isc_uint16_t bits) {
key->key_bits = bits;
}
isc_uint16_t
uint16_t
dst_key_getbits(const dst_key_t *key) {
REQUIRE(VALID_KEY(key));
return (key->key_bits);