From 48d9e0bb42d9ef2b1b3c52eac1a12c63baad3229 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 28 Mar 2018 17:45:35 +0200 Subject: [PATCH] Fix postgres build failure, closes #57 --- db-postgresql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db-postgresql.cpp b/db-postgresql.cpp index 73dd404..dc727c8 100644 --- a/db-postgresql.cpp +++ b/db-postgresql.cpp @@ -14,7 +14,7 @@ DBPostgreSQL::DBPostgreSQL(const std::string &mapdir) std::ifstream ifs((mapdir + "/world.mt").c_str()); if(!ifs.good()) throw std::runtime_error("Failed to read world.mt"); - std::string const connect_string = get_setting("pgsql_connection", ifs); + std::string connect_string = read_setting("pgsql_connection", ifs); ifs.close(); db = PQconnectdb(connect_string.c_str());