SPDX: license tags (mostly by guesswork)
[exim.git] / src / src / lookups / spf.c
index 179b3a648d1d1b123d27908d5e35eaadf92df0bd..a1052d7fc4c752efffac3295fc6981c6c3ed9f22 100644 (file)
@@ -5,14 +5,14 @@
 /* Exim - SPF lookup module using libspf2
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+Copyright (c) The Exim Maintainers 2020 - 2022
 Copyright (c) 2005 Chris Webb, Arachsys Internet Services Ltd
+SPDX-License-Identifier: GPL-2.0-or-later
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
-
-Copyright (c) The Exim Maintainers 2020
 */
 
 #include "../exim.h"
@@ -128,12 +128,13 @@ return OK;
 
 #include "../version.h"
 
-void
-spf_version_report(FILE *f)
+gstring *
+spf_version_report(gstring * g)
 {
 #ifdef DYNLOOKUP
-fprintf(f, "Library version: SPF: Exim version %s\n", EXIM_VERSION_STR);
+g = string_fmt_append(g, "Library version: SPF: Exim version %s\n", EXIM_VERSION_STR));
 #endif
+return g;
 }