mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
The region passed to isc_buffer_copyregion() should be const.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: buffer.c,v 1.34 2000/08/01 01:29:16 tale Exp $ */
|
/* $Id: buffer.c,v 1.35 2000/08/17 02:09:11 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ isc__buffer_putstr(isc_buffer_t *b, const char *source) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
isc_buffer_copyregion(isc_buffer_t *b, isc_region_t *r) {
|
isc_buffer_copyregion(isc_buffer_t *b, const isc_region_t *r) {
|
||||||
unsigned char *base;
|
unsigned char *base;
|
||||||
unsigned int available;
|
unsigned int available;
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: buffer.h,v 1.35 2000/08/01 01:30:02 tale Exp $ */
|
/* $Id: buffer.h,v 1.36 2000/08/17 02:09:12 bwelling Exp $ */
|
||||||
|
|
||||||
#ifndef ISC_BUFFER_H
|
#ifndef ISC_BUFFER_H
|
||||||
#define ISC_BUFFER_H 1
|
#define ISC_BUFFER_H 1
|
||||||
@@ -557,7 +557,7 @@ isc__buffer_putstr(isc_buffer_t *b, const char *source);
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
isc_buffer_copyregion(isc_buffer_t *b, isc_region_t *r);
|
isc_buffer_copyregion(isc_buffer_t *b, const isc_region_t *r);
|
||||||
/*
|
/*
|
||||||
* Copy the contents of 'r' into 'b'.
|
* Copy the contents of 'r' into 'b'.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user