add appropriate const's
This commit is contained in:
@@ -369,7 +369,7 @@ lwres_buffer_putuint32(lwres_buffer_t *b, isc_uint32_t val);
|
||||
*/
|
||||
|
||||
void
|
||||
lwres_buffer_putmem(lwres_buffer_t *b, unsigned char *base, unsigned int length);
|
||||
lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base, unsigned int length);
|
||||
/*
|
||||
* Copy 'length' bytes of memory at 'base' into 'b'.
|
||||
*
|
||||
|
||||
@@ -119,7 +119,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
isc_uint32_t family;
|
||||
isc_uint16_t length;
|
||||
unsigned char *address;
|
||||
const unsigned char *address;
|
||||
} lwres_addr_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -367,7 +367,7 @@ lwres_getaddrsbyname(lwres_context_t *ctx, const char *name,
|
||||
|
||||
int
|
||||
lwres_getnamebyaddr(lwres_context_t *ctx, isc_uint32_t addrtype,
|
||||
isc_uint16_t addrlen, unsigned char *addr,
|
||||
isc_uint16_t addrlen, const unsigned char *addr,
|
||||
lwres_gnbaresponse_t **structp);
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
@@ -256,7 +256,7 @@ lwres_buffer_putuint32(lwres_buffer_t *b, isc_uint32_t val)
|
||||
}
|
||||
|
||||
void
|
||||
lwres_buffer_putmem(lwres_buffer_t *b, unsigned char *base, unsigned int length)
|
||||
lwres_buffer_putmem(lwres_buffer_t *b, const unsigned char *base, unsigned int length)
|
||||
{
|
||||
unsigned char *cp;
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ lwres_getaddrsbyname(lwres_context_t *ctx, const char *name,
|
||||
|
||||
int
|
||||
lwres_getnamebyaddr(lwres_context_t *ctx, isc_uint32_t addrtype,
|
||||
isc_uint16_t addrlen, unsigned char *addr,
|
||||
isc_uint16_t addrlen, const unsigned char *addr,
|
||||
lwres_gnbaresponse_t **structp)
|
||||
{
|
||||
lwres_gnbarequest_t request;
|
||||
|
||||
Reference in New Issue
Block a user