X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/da47dd4d092ba35e4f8ff055d79693cc1266c816..1ddb1855402d48ad735e46abaf0d662e45600ecd:/src/src/lookups/lmdb.c diff --git a/src/src/lookups/lmdb.c b/src/src/lookups/lmdb.c index d9cf25d54..a885badf1 100644 --- a/src/src/lookups/lmdb.c +++ b/src/src/lookups/lmdb.c @@ -3,7 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 2016 - 2018 */ -/* Copyright (c) The Exim Maintainers 2020 */ +/* Copyright (c) The Exim Maintainers 2020 - 2021 */ /* See the file NOTICE for conditions of use and distribution. */ #include "../exim.h" @@ -129,14 +129,16 @@ mdb_env_close(db_env); #include "../version.h" -void -lmdb_version_report(FILE * f) +gstring * +lmdb_version_report(BOOL is_stdout) { -fprintf(f, "Library version: LMDB: Compile: %d.%d.%d\n", - MDB_VERSION_MAJOR, MDB_VERSION_MINOR, MDB_VERSION_PATCH); +gstring * g = string_fmt_append(g, + "Library version: LMDB: Compile: %d.%d.%d\n", + MDB_VERSION_MAJOR, MDB_VERSION_MINOR, MDB_VERSION_PATCH); #ifdef DYNLOOKUP -fprintf(f, " Exim version %s\n", EXIM_VERSION_STR); +g = string_fmt_append(g, " Exim version %s\n", EXIM_VERSION_STR); #endif +return g; } static lookup_info lmdb_lookup_info = {