Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
acba1142
Commit
acba1142
authored
Aug 17, 2000
by
Brian Wellington
Browse files
The region passed to isc_buffer_copyregion() should be const.
parent
a00c5e21
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/isc/buffer.c
View file @
acba1142
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: buffer.c,v 1.3
4
2000/08/
01 01:29:16 tale
Exp $ */
/* $Id: buffer.c,v 1.3
5
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
;
...
...
lib/isc/include/isc/buffer.h
View file @
acba1142
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: buffer.h,v 1.3
5
2000/08/
01 01:30:02 tale
Exp $ */
/* $Id: buffer.h,v 1.3
6
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'.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment