X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1e1ddfac79fbcd052f199500a6493c7f79cb8462..a85c067ba6c6940512cf57ec213277a370d87e70:/src/src/lookups/testdb.c diff --git a/src/src/lookups/testdb.c b/src/src/lookups/testdb.c index 5742485c8..f94150b68 100644 --- a/src/src/lookups/testdb.c +++ b/src/src/lookups/testdb.c @@ -2,9 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2020 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2015 */ -/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-only */ #include "../exim.h" #include "lf_functions.h" @@ -24,8 +25,6 @@ the find function. */ static void * testdb_open(const uschar * filename, uschar ** errmsg) { -filename = filename; /* Keep picky compilers happy */ -errmsg = errmsg; return (void *)(1); /* Just return something non-null */ } @@ -42,10 +41,6 @@ testdb_find(void * handle, const uschar * filename, const uschar * query, int length, uschar ** result, uschar ** errmsg, uint * do_cache, const uschar * opts) { -handle = handle; /* Keep picky compilers happy */ -filename = filename; -length = length; - if (Ustrcmp(query, "fail") == 0) { *errmsg = US"testdb lookup forced FAIL"; @@ -74,12 +69,13 @@ return OK; #include "../version.h" -void -testdb_version_report(FILE *f) +gstring * +testdb_version_report(gstring * g) { #ifdef DYNLOOKUP -fprintf(f, "Library version: TestDB: Exim version %s\n", EXIM_VERSION_STR); +g = string_fmt_append(g, "Library version: TestDB: Exim version %s\n", EXIM_VERSION_STR); #endif +return g; }