]> git.ipfire.org Git - thirdparty/openldap.git/commit
ITS#7878 Replace uint32_t with unsigned in back-mdb
authorRyan Tandy <ryan@nardis.ca>
Fri, 3 Apr 2020 22:15:27 +0000 (15:15 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 16 Apr 2020 16:52:18 +0000 (16:52 +0000)
commitf5143f99eeb66d4f5698284391ed7adf6cef9f03
treec87b7d8b5829c1773cd53996d9f8ef4dc1c2c237
parent6fe9b0c65479363e4f9f03dd85fc81b2940f62df
ITS#7878 Replace uint32_t with unsigned in back-mdb

init.c: align mi_dbenv_flags and flags with mdb_dbi_open, which declares
flags as unsigned int.

search.c: align mi_rtxn_size with ARG_UINT; adjust ww_ctx.nentries to
silence a warning about signed/unsigned comparison.

config.c: parse checkpoint config more carefully. Reject negative or
unreasonably large values for kbytes and minutes. Ensure both values are
parsed successfully before making any changes.

Fixes a compilation failure under MinGW, where stdint.h types are not
implicitly pulled in by other headers.
servers/slapd/back-mdb/back-mdb.h
servers/slapd/back-mdb/config.c
servers/slapd/back-mdb/init.c
servers/slapd/back-mdb/search.c