mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
The region passed to isc_buffer_copyregion() should be const.
This commit is contained in:
parent
a00c5e2151
commit
acba1142b4
2 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* 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>
|
||||
|
||||
|
|
@ -347,7 +347,7 @@ isc__buffer_putstr(isc_buffer_t *b, const char *source) {
|
|||
}
|
||||
|
||||
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 int available;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* 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
|
||||
#define ISC_BUFFER_H 1
|
||||
|
|
@ -557,7 +557,7 @@ isc__buffer_putstr(isc_buffer_t *b, const char *source);
|
|||
*/
|
||||
|
||||
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'.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue