]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed backup prototype for POOL_sizeof()
authorYann Collet <cyan@fb.com>
Thu, 30 Dec 2021 22:33:21 +0000 (14:33 -0800)
committerYann Collet <cyan@fb.com>
Thu, 30 Dec 2021 22:33:21 +0000 (14:33 -0800)
lib/common/pool.c

index 1146ce99a8fb46b29332cdd406678655b5e3c872..2e37cdd73c81912b103ccf0a0dff8c89b4c3369a 100644 (file)
@@ -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_ctxctx) {
     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);