From 6211bfee5ec24dc825c11751c33aa31d618b5f10 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 30 Dec 2021 14:33:21 -0800 Subject: [PATCH] fixed backup prototype for POOL_sizeof() --- lib/common/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/pool.c b/lib/common/pool.c index 1146ce99..2e37cdd7 100644 --- a/lib/common/pool.c +++ b/lib/common/pool.c @@ -194,7 +194,7 @@ void ZSTD_freeThreadPool (ZSTD_threadPool* pool) { POOL_free (pool); } -size_t POOL_sizeof(const POOL_ctx *ctx) { +size_t POOL_sizeof(const POOL_ctx* ctx) { if (ctx==NULL) return 0; /* supports sizeof NULL */ return sizeof(*ctx) + ctx->queueSize * sizeof(POOL_job) @@ -346,7 +346,7 @@ int POOL_tryAdd(POOL_ctx* ctx, POOL_function function, void* opaque) { return 1; } -size_t POOL_sizeof(POOL_ctx* ctx) { +size_t POOL_sizeof(const POOL_ctx* ctx) { if (ctx==NULL) return 0; /* supports sizeof NULL */ assert(ctx == &g_poolCtx); return sizeof(*ctx);