From 5ba257fafc65bd473fcc2e71bbacc5f7be2d2eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 24 Dec 2024 20:08:49 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=83=D0=BF=D1=83=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20`static`=20=D0=B4=D0=BB=D1=8F=20`txl?= =?UTF-8?q?=5Freserve()`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/txl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txl.c b/src/txl.c index 3c64e085..c9830f81 100644 --- a/src/txl.c +++ b/src/txl.c @@ -37,7 +37,7 @@ void txl_free(txl_t txl) { osal_free(txl - 1); } -int txl_reserve(txl_t __restrict *__restrict ptxl, const size_t wanna) { +static int txl_reserve(txl_t __restrict *__restrict ptxl, const size_t wanna) { const size_t allocated = (size_t)MDBX_PNL_ALLOCLEN(*ptxl); assert(MDBX_PNL_GETSIZE(*ptxl) <= txl_max && MDBX_PNL_ALLOCLEN(*ptxl) >= MDBX_PNL_GETSIZE(*ptxl)); if (likely(allocated >= wanna))