pgpool2.git / summary / log / commit / refs
commit 7be7e200ae889e3471c66584308494ce8e271e2a
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Wed Aug 29 06:48:22 2007 +0000
Fix compile error.
recovery.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/recovery.c b/recovery.c
index feabf9cc1..ead56d4ec 100644
--- a/recovery.c
+++ b/recovery.c
@@ -237,15 +237,16 @@ static int check_postmaster_started(BackendInfo *backend)
static PGconn *connect_backend_libpq(BackendInfo *backend)
{
char port_str[10];
+ PGconn *conn;
sprintf(port_str, "%d", backend->backend_port);
- PGconn *conn = PQsetdbLogin(backend->backend_hostname,
- port_str,
- NULL,
- NULL,
- "template1",
- pool_config->recovery_user,
- pool_config->recovery_password);
+ conn = PQsetdbLogin(backend->backend_hostname,
+ port_str,
+ NULL,
+ NULL,
+ "template1",
+ pool_config->recovery_user,
+ pool_config->recovery_password);
if (PQstatus(conn) != CONNECTION_OK)
{
[parent: 2e4cfb874942]