From acba1142b4de693e07615b05794899aa02bd1ad1 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 17 Aug 2000 02:09:12 +0000 Subject: [PATCH] The region passed to isc_buffer_copyregion() should be const. --- lib/isc/buffer.c | 4 ++-- lib/isc/include/isc/buffer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/isc/buffer.c b/lib/isc/buffer.c index 1c43589e67..c6179667db 100644 --- a/lib/isc/buffer.c +++ b/lib/isc/buffer.c @@ -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 @@ -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; diff --git a/lib/isc/include/isc/buffer.h b/lib/isc/include/isc/buffer.h index 963e74d56e..6e1748360a 100644 --- a/lib/isc/include/isc/buffer.h +++ b/lib/isc/include/isc/buffer.h @@ -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'. *