aboutsummaryrefslogtreecommitdiff
path: root/contrib/xz/src/liblzma/common/index_hash.c
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-02-11 18:59:46 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-02-11 18:59:46 +0000
commit53f2fbcab4ca497c4bed5e5728534468e2b9e992 (patch)
tree303a2448e6e55aa1910e1ff2c6a77612730d280f /contrib/xz/src/liblzma/common/index_hash.c
parentccb7bf26233e1b6ef1dcb23ac7206beb53dcaff7 (diff)
parent399d34850fe953934b6516ac78dfc3c7aed1e10f (diff)
downloadsrc-53f2fbcab4ca497c4bed5e5728534468e2b9e992.tar.gz
src-53f2fbcab4ca497c4bed5e5728534468e2b9e992.zip
MFH: r278202,r278205-r278590
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=278591
Diffstat (limited to 'contrib/xz/src/liblzma/common/index_hash.c')
-rw-r--r--contrib/xz/src/liblzma/common/index_hash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/xz/src/liblzma/common/index_hash.c b/contrib/xz/src/liblzma/common/index_hash.c
index e3e9386ae8e3..d7a0344b76c3 100644
--- a/contrib/xz/src/liblzma/common/index_hash.c
+++ b/contrib/xz/src/liblzma/common/index_hash.c
@@ -70,7 +70,8 @@ struct lzma_index_hash_s {
extern LZMA_API(lzma_index_hash *)
-lzma_index_hash_init(lzma_index_hash *index_hash, lzma_allocator *allocator)
+lzma_index_hash_init(lzma_index_hash *index_hash,
+ const lzma_allocator *allocator)
{
if (index_hash == NULL) {
index_hash = lzma_alloc(sizeof(lzma_index_hash), allocator);
@@ -101,7 +102,8 @@ lzma_index_hash_init(lzma_index_hash *index_hash, lzma_allocator *allocator)
extern LZMA_API(void)
-lzma_index_hash_end(lzma_index_hash *index_hash, lzma_allocator *allocator)
+lzma_index_hash_end(lzma_index_hash *index_hash,
+ const lzma_allocator *allocator)
{
lzma_free(index_hash, allocator);
return;