diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-12 16:29:52 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-13 15:56:11 +0200 |
commit | daa9f891831e53b0872f5b290ce2f009dd48de8f (patch) | |
tree | 63be2577c86d5bbf9f6e0b2f683d888ab765ff5a | |
parent | c05ad37bfd03486475889485606ed5cffc7bf5a2 (diff) |
m_ssl_gnutls Cast pointer difference to an unsigned int before displaying it
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index dabdfbfb3..3dc6866e6 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -352,7 +352,7 @@ class ModuleSSLGnuTLS : public Module if ((ret = gnutls_priority_init(&priority, priocstr, &prioerror)) < 0) { // gnutls did not understand the user supplied string, log and fall back to the default priorities - ServerInstance->Logs->Log("m_ssl_gnutls",DEFAULT, "m_ssl_gnutls.so: Failed to set priorities to \"%s\": %s Syntax error at position %ld, falling back to default (NORMAL)", priorities.c_str(), gnutls_strerror(ret), (prioerror - priocstr)); + ServerInstance->Logs->Log("m_ssl_gnutls",DEFAULT, "m_ssl_gnutls.so: Failed to set priorities to \"%s\": %s Syntax error at position %u, falling back to default (NORMAL)", priorities.c_str(), gnutls_strerror(ret), (unsigned int) (prioerror - priocstr)); gnutls_priority_init(&priority, "NORMAL", NULL); } |