Commit acba1142 authored by Brian Wellington's avatar Brian Wellington
Browse files

The region passed to isc_buffer_copyregion() should be const.

parent a00c5e21
...@@ -15,7 +15,7 @@ ...@@ -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) { ...@@ -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 @@ ...@@ -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); ...@@ -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'.
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment