From ace062f4a73fd46b66cca8712ce2e301f59feed0 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 16 Aug 2017 11:28:38 +0300 Subject: [PATCH] mdbx: fix warning around `mode_t`. More for https://github.com/leo-yuriev/libmdbx/issues/15 Change-Id: I1743e01e9111400942fd2a4846a21c475101a148 --- src/mdbx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index 618721a2..89fe3cee 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -4951,7 +4951,8 @@ static int __cold mdbx_setup_dxb(MDBX_env *env, int lck_rc) { /****************************************************************************/ /* Open and/or initialize the lock region for the environment. */ -static int __cold mdbx_setup_lck(MDBX_env *env, char *lck_pathname, int mode) { +static int __cold mdbx_setup_lck(MDBX_env *env, char *lck_pathname, + mode_t mode) { assert(env->me_fd != INVALID_HANDLE_VALUE); assert(env->me_lfd == INVALID_HANDLE_VALUE);