mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
the great type change
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#define VALID_BUFFER(b) ((b) != NULL)
|
||||
|
||||
void
|
||||
isc_buffer_init(isc_buffer_t b, unsigned char *base, unsigned int length) {
|
||||
isc_buffer_init(isc_buffer_t *b, unsigned char *base, unsigned int length) {
|
||||
/*
|
||||
* Make 'b' refer to the 'length'-byte region starting at base.
|
||||
*/
|
||||
@@ -40,7 +40,7 @@ isc_buffer_init(isc_buffer_t b, unsigned char *base, unsigned int length) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_region(isc_buffer_t b, isc_region_t r) {
|
||||
isc_buffer_region(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
* Make 'r' refer to the region of 'b'.
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ isc_buffer_region(isc_buffer_t b, isc_region_t r) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_used(isc_buffer_t b, isc_region_t r) {
|
||||
isc_buffer_used(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
* Make 'r' refer to the used region of 'b'.
|
||||
*/
|
||||
@@ -66,7 +66,7 @@ isc_buffer_used(isc_buffer_t b, isc_region_t r) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_available(isc_buffer_t b, isc_region_t r) {
|
||||
isc_buffer_available(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
* Make 'r' refer to the available region of 'b'.
|
||||
*/
|
||||
@@ -80,7 +80,7 @@ isc_buffer_available(isc_buffer_t b, isc_region_t r) {
|
||||
|
||||
|
||||
void
|
||||
isc_buffer_add(isc_buffer_t b, unsigned int n) {
|
||||
isc_buffer_add(isc_buffer_t *b, unsigned int n) {
|
||||
/*
|
||||
* Increase the 'used' region of 'b' by 'n' bytes.
|
||||
*/
|
||||
@@ -92,7 +92,7 @@ isc_buffer_add(isc_buffer_t b, unsigned int n) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_subtract(isc_buffer_t b, unsigned int n) {
|
||||
isc_buffer_subtract(isc_buffer_t *b, unsigned int n) {
|
||||
/*
|
||||
* Decrease the 'used' region of 'b' by 'n' bytes.
|
||||
*/
|
||||
@@ -104,7 +104,7 @@ isc_buffer_subtract(isc_buffer_t b, unsigned int n) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_clear(isc_buffer_t b) {
|
||||
isc_buffer_clear(isc_buffer_t *b) {
|
||||
/*
|
||||
* Make the used region empty.
|
||||
*/
|
||||
@@ -114,7 +114,7 @@ isc_buffer_clear(isc_buffer_t b) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_consumed(isc_buffer_t b, isc_region_t r) {
|
||||
isc_buffer_consumed(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
* Make 'r' refer to the consumed region of 'b'.
|
||||
*/
|
||||
@@ -127,7 +127,7 @@ isc_buffer_consumed(isc_buffer_t b, isc_region_t r) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_remaining(isc_buffer_t b, isc_region_t r) {
|
||||
isc_buffer_remaining(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
* Make 'r' refer to the remaining region of 'b'.
|
||||
*/
|
||||
@@ -140,7 +140,7 @@ isc_buffer_remaining(isc_buffer_t b, isc_region_t r) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_first(isc_buffer_t b) {
|
||||
isc_buffer_first(isc_buffer_t *b) {
|
||||
/*
|
||||
* Make the consumed region empty.
|
||||
*/
|
||||
@@ -151,7 +151,7 @@ isc_buffer_first(isc_buffer_t b) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_forward(isc_buffer_t b, unsigned int n) {
|
||||
isc_buffer_forward(isc_buffer_t *b, unsigned int n) {
|
||||
/*
|
||||
* Decrease the 'used' region of 'b' by 'n' bytes.
|
||||
*/
|
||||
@@ -163,7 +163,7 @@ isc_buffer_forward(isc_buffer_t b, unsigned int n) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_back(isc_buffer_t b, unsigned int n) {
|
||||
isc_buffer_back(isc_buffer_t *b, unsigned int n) {
|
||||
/*
|
||||
* Decrease the 'consumed' region of 'b' by 'n' bytes.
|
||||
*/
|
||||
@@ -175,7 +175,7 @@ isc_buffer_back(isc_buffer_t b, unsigned int n) {
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_compact(isc_buffer_t b) {
|
||||
isc_buffer_compact(isc_buffer_t *b) {
|
||||
unsigned int length;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user