mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
lint
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#define BUFFER_MAGIC 0x42756621U /* Buf!. */
|
||||
|
||||
void
|
||||
isc_buffer_init(isc_buffer_t *b, unsigned char *base, unsigned int length,
|
||||
isc_buffer_init(isc_buffer_t *b, void *base, unsigned int length,
|
||||
unsigned int type) {
|
||||
/*
|
||||
* Make 'b' refer to the 'length'-byte region starting at base.
|
||||
@@ -105,7 +105,7 @@ isc_buffer_available(isc_buffer_t *b, isc_region_t *r) {
|
||||
REQUIRE(VALID_BUFFER(b));
|
||||
REQUIRE(r != NULL);
|
||||
|
||||
r->base = b->base + b->used;
|
||||
r->base = (unsigned char *)b->base + b->used;
|
||||
r->length = b->length - b->used;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user