mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
now code compiles with -ansi -pedantic and has less warnings
This commit is contained in:
@@ -138,7 +138,7 @@ is_pgup(PGconn *conn, int timeout)
|
||||
{
|
||||
if (twice)
|
||||
return false;
|
||||
PQreset(conn); // reconnect
|
||||
PQreset(conn); /* reconnect */
|
||||
twice = true;
|
||||
}
|
||||
else
|
||||
@@ -164,10 +164,10 @@ is_pgup(PGconn *conn, int timeout)
|
||||
break;
|
||||
|
||||
failed:
|
||||
// we need to retry, because we might just have loose the connection once
|
||||
/* we need to retry, because we might just have loose the connection once */
|
||||
if (twice)
|
||||
return false;
|
||||
PQreset(conn); // reconnect
|
||||
PQreset(conn); /* reconnect */
|
||||
twice = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user