From 5d2f760e4db868820c64ebf807b3045398a14c14 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 22 Jul 2024 17:11:07 +0100 Subject: Fix shadowing messages in pgsql and regex_pcre2. --- src/modules/extra/m_pgsql.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/extra/m_pgsql.cpp') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 5ff50c765..a2f4bfe43 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -579,17 +579,17 @@ public: void init() override { - int version = PQlibVersion(); - int minor = version / 100 % 100; - int revision = version % 100; - if (version >= 10'00'00) + int pqversion = PQlibVersion(); + int minor = pqversion / 100 % 100; + int revision = pqversion % 100; + if (pqversion >= 10'00'00) { // Ref: https://www.postgresql.org/docs/current/libpq-misc.html#LIBPQ-PQLIBVERSION minor = revision; revision = 0; } ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version {} and is running against version {}.{}.{}", - PG_VERSION, version / 10000, minor, revision); + PG_VERSION, pqversion / 10000, minor, revision); } void ReadConfig(ConfigStatus& status) override -- cgit v1.3.1-10-gc9f91