summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-09-24 17:49:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:52 -0500
commitcb6a4b280fc98994a4d764480d5b10be4f2d085c (patch)
treed3d7ce41e2007a74360861b1d86cab70fc0372be /source4/lib
parent3d4ea18d4dd9031adc16348c16595d6c216b2d84 (diff)
downloadsamba-cb6a4b280fc98994a4d764480d5b10be4f2d085c.tar.gz
samba-cb6a4b280fc98994a4d764480d5b10be4f2d085c.tar.bz2
samba-cb6a4b280fc98994a4d764480d5b10be4f2d085c.zip
r10479: Apply some const
(This used to be commit 3e10e8e6618c568f7f55348d829b433e10df472b)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/data_blob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c
index 049210e8ee..afd9262274 100644
--- a/source4/lib/data_blob.c
+++ b/source4/lib/data_blob.c
@@ -185,9 +185,11 @@ DATA_BLOB data_blob_const(const void *p, size_t length)
/*
append some data to a data blob
*/
-NTSTATUS data_blob_append(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, void *p, size_t length)
+NTSTATUS data_blob_append(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
+ const void *p, size_t length)
{
- blob->data = talloc_realloc_size(mem_ctx, blob->data, blob->length + length);
+ blob->data = talloc_realloc_size(mem_ctx, blob->data,
+ blob->length + length);
NT_STATUS_HAVE_NO_MEMORY(blob->data);
memcpy(blob->data + blob->length, p, length);
blob->length += length;