summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/errorcallback.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/source/xmlsec/errorcallback.cxx')
-rw-r--r--xmlsecurity/source/xmlsec/errorcallback.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/errorcallback.cxx b/xmlsecurity/source/xmlsec/errorcallback.cxx
index ac9b72511458..3cbe0ac1142e 100644
--- a/xmlsecurity/source/xmlsec/errorcallback.cxx
+++ b/xmlsecurity/source/xmlsec/errorcallback.cxx
@@ -29,8 +29,9 @@
#include <comphelper/windowserrorstring.hxx>
#endif
-extern "C"
-void errorCallback(const char* file,
+extern "C" {
+
+static void errorCallback(const char* file,
int line,
const char* func,
const char* errorObject,
@@ -50,6 +51,8 @@ void errorCallback(const char* file,
SAL_WARN("xmlsecurity.xmlsec", file << ":" << line << ": " << func << "() '" << pErrorObject << "' '" << pErrorSubject << "' " << reason << " '" << pMsg << "'" << systemErrorString);
}
+}
+
XSECXMLSEC_DLLPUBLIC void setErrorRecorder()
{
xmlSecErrorsSetCallback(errorCallback);